- Newest
- Most votes
- Most comments
I apologize for the difficulty you're experiencing with Amazon Textract. There are a few potential reasons why you might not be getting the expected results:
-
Document format: While you mentioned using a single-page PDF, it's important to ensure that the PDF is text-based and not an image-based PDF. Textract works best with text-based PDFs or image formats like JPEG or PNG.
-
Text recognition: If the text in your document is not clearly printed or has unusual fonts, Textract may have difficulty recognizing it accurately.
-
Query formulation: When using the query feature, make sure your query is precise and matches the exact wording in the document. Textract's query feature is sensitive to exact matches.
-
Document quality: The quality of the document can affect Textract's ability to recognize text. Ensure that the document is clear, well-scanned, and has good contrast.
-
Service limitations: Textract has some known limitations, such as difficulties with certain special characters or formatting like bullet points.
To troubleshoot this issue:
-
Try using the DetectDocumentText API instead of the query feature to see if Textract can detect any text in your document at all.
-
Verify that the document is properly uploaded to S3 and accessible.
-
If possible, try converting your PDF to an image format like JPEG or PNG and analyze that instead.
-
Check if there are any error messages in the Lambda logs that might provide more information about the issue.
-
Consider using the synchronous API (AnalyzeDocument) instead of the asynchronous one if you're not already doing so, as it might provide more immediate feedback.
If these steps don't resolve the issue, you may want to try processing a simpler document to isolate whether the problem is with Textract or specific to your document. If problems persist, consider reaching out to AWS support for further assistance.
Sources
textract is not working as it should | AWS re:Post
Textract Error With Multiples Pages | AWS re:Post
AWS Textract not accepting remote/non-aws document URL ?? | AWS re:Post
answered 2 years ago
Relevant content
asked 3 years ago
asked 4 years ago
asked 4 years ago
