Community

Read barcode or/and text and save as filename.

Hello, do anybody can help me with creating project. There is 4 barcodes in document, one barcode containt data "PO543543" and under barcode it's text "PO543543".
I need read that barcode and text, check if the two data is the same, if cant read one or it's blank use another data to save file as filename or both are the same.
Always barcode or text data containt word "PO" and random numbers.

Thanks in advance for any help

Was this article helpful?

0 out of 0 found this helpful

Comments

11 comments

  • Avatar
    Andrew Zyuzin
    Hello, do you use Scanning station?
    0
  • Avatar
    dayz
    Yes we have scanning station from Abbyy, i never used it
    0
  • Avatar
    Andrew Zyuzin
    Hi Dayz. This is too complicated task for Recognition server that is aimed to full-text recognition process. The task you described can be implemented exactly as you want using ABBYY FlexiCapture. As far as ABBYY RS is concerned it is possible to extract only the value of barcode, that starts with PO..., but it is impossible to match it with text under tha barcode using RS standard functionaity.
    But why do you want to match barcode value with text under it? I think it is useless and even harmful for your process. Usually, barcode has checksum. So, it is posible in some sophisticated cases (when the quality of image is low) for our engine not to find barcode at all or do not recognize it at all (such situations may happend sometimes), but as far as we have a checksum it is particularly impossible to recognize wrong value from it. The recognition errors in text under barcode I consider to be more often (not very often I hope, but definitly more often than in barcode recognition). So, instead of improving the whole quality by text recognition you will actually generate extra verification work because of the fact that text recognition will be mistaken more often than barcode recognition.
    So my proposal is to think over the process, maybe to simplify the scenario by refusing from comparison barcode value with the text
    0
  • Avatar
    dayz
    Ok can be more simply with reading only data from one barcode and checking if it contain PO, if not then it need to write file as blank, unregnozied or something like tkat or it save to other folder?
    How can i do it? Or maybe you can send me project with funcjonality?

    0
  • Avatar
    Andrew Zyuzin
    You should use Document Separation script for searching for specific barcode within all page barcodes and then set its value to CustomText property.
    It may looks like this

    [VBScript]

    Dim i


    For i=0 to me.BarcodeBlocks.Count-1


    If InStr(me.BarcodeBlocks.Item(i).Text,"PO")>0 Then


    me.CustomText = me.BarcodeBlocks.Item(i).Text


    me.IsStartingPage = true


    Exit For


    End If


    Next

    Then please specify the following file naming rule at the export options: < customtext=""> . < ext="">
    0
  • Avatar
    dayz
    I added script to workflow, 3 separation or 6 output and it dosnt work... Any sugestions? When i test script is ok, but workflow dosnt work... I sended on pm few documents, could you test it?
    0
  • Avatar
    Andrew Zyuzin
    I have tested it with all provrided documents and it works fine. What diagnostics do you see? Does job fails with some message, or workflow is not able to start, does something in Windows Event log appear?
    0
  • Avatar
    dayz
    Yes you have right, everything works. If i want find text what i need change in script, maybe BarcodeBlocks.Item to TextBlocks.Item or Text.item?
    Thank you very much for resolving my problem
    0
  • Avatar
    dayz
    Ok today i need find two text in documentL
    Fist one is date and it can be something like that: 15-06-2014 so i need find everything from 2014 year to left so it would like to be *2014
    Secound one need to be text: 101 or 102 or 103 so it need to find that one of the free text types and read everything to right.

    In the end it need to save file name with name of two text types so it need to be:
    6-06-2014 1015654.pdf
    3-06-2014 1025421.pdf
    1-06-2014 1037350.pdf
    0
  • Avatar
    Andrew Zyuzin
    Hi dayz

    I guess FlexiCapture with FlexiLayout Studio is perfect for this task - you need to develop easy FlexiLayout that will get all necessary data for you. It is much more powerfull tool than RS and you will be able to easily expand the amount of extracted data if needed.

    If you are using RS, you still have some options: use script at Indexing stage (see the article "Creating a Script for Document Identification and Indexing" in RS's help file). You can access page full text there and then, using regular expressions, get the data wanted. Put then obtained values to document attributes and use them in files naming schema in export settings.
    0
  • Avatar
    dayz
    Hi but i have only RS and i'm not good at scripting I readed from manual but i dont understand java or vb.
    0

Please sign in to leave a comment.