Skip to content

Textract Performance variations

0

Hi All,

Using Textract service, I am submitting about 11 images for OCR asynchronously by invoking textract.start_document_text_detection. I am running into a problem where all the jobs finish in as little as 4 seconds and other times, it takes as much as 300 seconds and everything in between - just to OCR 11 images. Could it solely be due to the fact that this service doesn't have premium version which comes with service guarantees? Even though our need is not real time, we would want the job completion to be more deterministic. Any suggestions for things I could try? Many thanks in advance. I am not exceeding quotas...Running multiple tests in the same region. There is no correlation with time of day.

Thanks.

asked 2 years ago527 views

1 Answer
0

The performance variations you're experiencing with Amazon Textract are not uncommon and can be attributed to several factors. While there isn't a premium version of Textract with service guarantees, there are some aspects to consider and potential solutions to explore:

  1. Document complexity: The processing time can vary significantly based on the complexity of the images. Documents with intricate layouts, tables, or low-quality scans may take longer to process.

  2. Service load: Textract's performance can fluctuate based on overall service demand at any given time.

  3. Network latency: If your application is in a different region from the Textract service, it could impact processing times.

  4. Image quality: The quality of the input images can affect processing time. Ensure your images are clear, well-lit, and properly formatted.

To address these issues and make job completion more deterministic, you could try the following:

  1. Optimize your images: Ensure they are of good quality and properly formatted before submission.

  2. Process in parallel: Consider splitting your batch of 11 images and processing them concurrently using multiple Textract jobs.

  3. Use CloudWatch: Monitor your Textract usage and performance to identify patterns or issues.

  4. Implement retry logic: Design your application to handle varying processing times and implement appropriate retry mechanisms.

  5. Consider pre-processing: You might want to pre-process your images to improve their quality before submitting to Textract.

  6. Evaluate regional performance: Test Textract in different AWS regions to see if there are performance differences.

If these variations continue to be a significant issue for your use case, you may want to contact AWS support for further investigation and guidance. They might be able to provide more specific recommendations based on your particular setup and requirements.
Sources
Textract too slow for a single page PDF | AWS re:Post
AWS Textract issue | AWS re:Post
Amazon Textract AnalyzeID - AWS AI Service Cards

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.