aws-samples / aws-samples/amazon-textract-serverless-large-scale-document-processing
TextType not in Response object from textract
- Lingua principale
- Python
- Stelle
- 337
- Fork
- 159
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con test.py e confronta la sua risposta Textract con la risposta della Lambda distribuita durante l’elaborazione di un PNG. Esamina come il progetto pacchettizza e invoca boto3/Textract, quindi verifica che i blocchi WORD nella risposta distribuita includano TextType come documentato nel riferimento API collegato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- api, cloud
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100