Community

Detecting corretly vertical characters in a horizontal invoice Answered

Hi everyone, I´m trying to analize different elements in my invoices.

But I have to get an element that is vertical while the rest of the fields are horizontal. The project is configured to detect the two types of text, but when the pre-recognition is performed the interpreted characters are not correct. If you change the orientation of the page and perform pre-processing the field is detected correctly. Please tell me the configuration or the element that allows me to correctly pick this field.

Thanks for your atention.

 

 

0

Comments

9 comments

  • Avatar
    Ekaterina

    Hello Rodrigo

    You can not set this functionality on the FLS level, but you can do it in FC.

    In FLS you may create the element of region type, set its' position based on other page elements and create a Block based on this region.  Then on the level of FlexiCapture Document Definition open Properties of this block and customize "Orientation" option.

    0
  • Avatar
    Rodrigo Linares

    Thank you very much for your help.

    The problem I have now is that the result I get with the FlexiLayout in the rest of the fields does not come close to what I get with FlexiCapture.

    In FlexiCapture, I create the document definition with the previously generated .afl, but I can not figure out how to add or modify the elements through FlexiCapture.

    Is there be any way to edit these FlexiCapture elements?

    Or vice versa, could you use the "fcdot" generated in the flexyCapture, modify or add elements in the FlexiLayout?

    We need the tools provided from both programs in order to generate a "mixed" definition file.

     

    Thank you very much for your attention

    0
  • Avatar
    Ekaterina

    Hello Rodrigo

    The results of flexi layout matching in FLS and FC are different for the same image, please check your pre-recognition settings:

    Load Image > Image Preprocessing settings button > Image processing block > Convert color and gray images to black-and-white.  Usually in the FLS the BW conversion by default is ON, and in the FC it's OFF and that is causing the majority of layout matching differences.

    If you need to add some fields to the FlexiLayout loaded from .afl file, in the FlexiCapture Document Definition Editor you may select Edit > Create Field - specify a field type. For this additional field you may customize properties, add any scripts , and treat is as any other field that comes from .afl 

    You may find more details about fields creation here: Program settings > Document Definitions

    0
  • Avatar
    Rodrigo Linares

    Thank you very much for your help. I have tried several settings:

     

    1-In the FLS creating a region element and its corresponding block, I collect the area that contains the text in vertical. Then in the definition of the FlexiCapture document I edit the orientation of the block and the vertical text is correctly identified.

    The problem is that I do not want to collect all the text vertically, I just want to collect the supplier's VAT, which is referenced with the label "VAT".

    2-I tried to recognize it in the FLS with a static text element and collect VAT with a String character, but when I change the orientation in the FC does not work correctly.

    Can it be done with configuration 2? Or the only possible solution would be to add a script in configuration 1, in the FC block to which the orientation changes.

     

    Thank you very much for your attention.

    0
  • Avatar
    Ekaterina

    Hello  Rodrigo

    You will not have to collect all the text vertically if you set vertical recognition only for the single field that contains the value you need to extract.

    0
  • Avatar
    Rodrigo Linares

    Hello Ekaterina.

    I dont know what do you mean with "single field". Following your advice, I used a Label Field that looks for the label "N.I.F.:|N.I.F.", Indicating that the field is above it.

    Once afl is generated, I change the orientation of the block that collects this labelField, but it has no assigned area ( I've positioned it on the left margin) nor finds any value when doing the recognition.

    Could you tell me what configuration is incorrect?.

    Thank you very much for your attention.

     

    0
  • Avatar
    Ekaterina

    Hello, Rodrigo

    There are 2 pictures in the attachment that show the correct settings: the first is about the FLS level and the second about the FC level. Please follow these instructions and if after all you are still unable to set the recognition, please send us corresponding screenshots of your settings.

    example

    0
  • Avatar
    Rodrigo Linares

    Hi Ekaterina,

    I have the same configuration as u show me in the attachment pictures. 

    Function correctly, the problem is that I do not want to collect all the text in vertical. I just want to collect the VAT number of the issuer of the invoice (which is crossed out). The only way I have achieved this has been to limit the area of the Element "AreaIdProveedor" by means of relations with the rest of the elements. The problem is that this may fail as these related elements appear or not. There is no other way to do it, right? Thanks for your attention.

    0
  • Avatar
    Ekaterina

    Hello Rodrigo

    As I understand there are two questions that you possibly want to resolve:

        You are not sure that you can always catch your region correctly.

     There is a way to find a region more accurately but it is more difficult and too complex for this resource. If you need this capture, please address this issue to the regional support or PSG.

        You need a part of captured string. 

    You may use autocorrect options on the FC level after the recognition (Properties > Data > Autocorrect options).

    1

Please sign in to leave a comment.