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) .

已提问 2 年前225 查看次数
1 回答
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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则