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

TextType not in Response object from textract

オープン
#23 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
337
フォーク
159
PR マージ指標
30日以内にマージされた PR はありません

説明

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)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

test.py から始め、PNG を処理したときのその Textract レスポンスと、デプロイ済み Lambda からのレスポンスを比較します。プロジェクトが boto3/Textract をどのようにパッケージ化して呼び出しているかを調べ、デプロイ済みレスポンスの WORD ブロックに、リンク先の API リファレンスに記載されているとおり TextType が含まれていることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
api, cloud
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。