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

TextType not in Response object from textract

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
337
Forks
159
PR merge metrics
No merged PRs in 30d

Description

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](https://docs.aws.amazon.com/textract/latest/dg/API_DetectDocumentText.html)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.