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
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
Comments
11 comments
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
How can i do it? Or maybe you can send me project with funcjonality?
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="">
Thank you very much for resolving my problem
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
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.
Please sign in to leave a comment.