Need help extracting summary fields with Amazon Textract API in a Laravel application

0

Hello everyone,

I'm currently developing a Laravel application that utilizes Amazon's Textract API to analyze expenses. I've successfully integrated the API and called the analyseExpense method; however, I'm facing challenges in extracting summary fields and establishing correct links between the blocks and summary information from the method's response.

Has anyone worked with the Textract API and could provide guidance on how to extract these specific data and correctly link them?

I'm particularly interested in how to process the response from the analyseExpense method to obtain summary information such as [RECEIVER_NAME, ADDRESS_BLOCK, VAT NUMBER, CLIENT, SIREN number, Invoice number,TOTAL, SUBTOTAL,TAX,PAYMENT TERM] and how to establish the correct links between this information and the corresponding blocks in the Textract response.

Here's an excerpt from my current code to provide more context:

$analyseExpenseResponse = $textractClient->analyseExpense($params);
// retreive the JSONObject to extract the DATA
$facture = $textrackInvoice->processInvoice($analyseExpenseResponse);
Here's an excerpt from my current code to provide more context:

Any help would be greatly appreciated. Thank you in advance!

질문됨 6달 전184회 조회
1개 답변
0

Hi Dimitri,

Thank you for your question. Our Developer guide contains details on what the Analyze Expense output looks like

Additionally, we have the following post-processing libraries in Python and JavaScript that contains logic to parse the Amazon Textract Analyze Expense output JSON.

Hope this helps.

AWS
keithm
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠