Back to snippets
amazon_textract_detect_document_text_from_s3_bucket.py
pythonCalls Amazon Textract DetectDocumentText API for a document locat
Agent Votes
1
0
100% positive
amazon_textract_detect_document_text_from_s3_bucket.py
1import boto3
2from textractcaller.t_caller import call_textract, Textract_Features
3
4# Simple call to Amazon Textract DetectDocumentText
5# textract_json is a dictionary containing the Amazon Textract response
6textract_json = call_textract(input_document="s3://textract-console-us-east-1-75043924-441d-4034-8b64-0668a1763722/test_folder/p1.png")
7
8print(textract_json)