2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Hi User,
As you are using expense API, are you using it on receipts or invoice documents? Expense API can help by detecting possible labels and their corresponding values, similar to key-value pair. Here is an article with sample codes in Python on how it can be achieved: https://docs.aws.amazon.com/textract/latest/dg/analyzing-document-expense.html
The results will be in JSON format, which then you can re-format the data to suit your use case.
0
You can use the Amazon Textract PrettyPrinter for this purpose. The Amazon Textract Response Parser does have a test that does that:
# json_response holds the response from the ExpenseAPI call exp_docs: texp.TAnalyzeExpenseDocument = texp.TAnalyzeExpenseDocumentSchema().load(json_response) all_fields = exp_docs.get_all_summaryfields_by_expense_id(docid=exp_doc.expense_idx) normalized_fields = exp_docs.get_normalized_summaryfields_by_expense_id(docid=exp_doc.expense_idx)
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전