aws-samples / aws-samples/amazon-textract-textractor

Textractor doesn't detect the INVOICE_RECEIPT_ID, but the AWS Textract Demo can

Open
#408 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
493
Forks
163
PR merge metrics
No merged PRs in 30d

Description

Hello, I'm having an issue with the amazon-textract-textractor library. It doesn't detect theINVOICE_RECEIPT_ID, but the AWS Textract Demo can detect it.

Here is the AWS Textract Demo:
![Screenshot 2024-11-20 at 11 06 06 AM](https://github.com/user-attachments/assets/80bd0219-ac66-451c-ab06-b59de05c8048)

amazon-textract-textractor:
![Screenshot 2024-11-20 at 11 06 49 AM](https://github.com/user-attachments/assets/4965914a-46eb-460a-bca8-28557b848588)

Here is the sample code:from textractor import Textractor

extractor = Textractor(profile_name="")

document = extractor.analyze_expense(
file_source="test.jpg",
save_image=False,
)
expense_doc = document.expense_documents[0]
summary_fields = expense_doc.summary_fields
line_field = expense_doc.line_items_groups
print(summary_fields)

Sample Receipt:
![test](https://github.com/user-attachments/assets/e1d2c1c4-83d0-444b-b363-435e313af54c)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.