aws-samples / amazon-textract-serverless-large-scale-document-processing

Process documents at scale using Amazon Textract
Apache License 2.0
328 stars 165 forks source link

TextType not in Response object from textract #23

Open archerne opened 3 years ago

archerne commented 3 years ago

When I run a deploy this project and run a png through using the lambda the response object for item["BlockType"] == "WORD" does not include an item["TextType"] key.

However if I run this either manually using the test.py or creating a function to call textract from my machine, it does bring this key back.

I am guessing that this project is using an older version of the boto3 api, however i am not sure how to update that. Thanks!

You can see the "TextType" parameter is supposed to come back here: Textract API