Textract to scan Bar Code

0

We have use case where we are using Textract Analyze API to scan receipts from vendors like Dollar General to identify SKU/ products. We are able to extract the data at line item level. However, to prevent duplication we need a unique identifier from the scanned receipts and Textract is not able to scan the bar code number using the Analyze API. Though we are able to extract that field using Analyze document however, that would cost us another API call . Looking for suggestions to approach this .
An example receipt here - https://i.pinimg.com/736x/a2/c8/6a/a2c86a21bdfa47011ed2a2dc71fae877.jpg . Please note - I'm referring to the number mentioned below the bar code (not the bar code scanned no) .

asked a year ago221 views
1 Answer
0

Use the Blocks section from AE response: it's OCR result and AD is reading from the same

{
          "BlockType": "WORD",
          "Confidence": 71.98486328125,
          "Text": "390456534085839029221069924910351711",
          "TextType": "PRINTED",
          "Geometry": {
            "BoundingBox": {
              "Width": 0.79609215259552,

Note: AE is currently using an older OCR model by default and it might not be as accurate as AD (new OCR model). We plan to update this in the near future

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions