aws-samples / amazon-textract-idp-cdk-constructs

MIT No Attribution
27 stars 13 forks source link

GenerateCSV fails when QUERY_ANSWER has not geometry #77

Closed schadem closed 1 year ago

schadem commented 1 year ago
a JSON with no geometry information for the QUERY_RESULT fails

{
        "BlockType": "QUERY_RESULT",
        "Confidence": 98.0,
        "Text": "Ana Carolina",
        "Id": "5c860e58-deb4-4c24-8282-2394a2c535c0"
    }
],

Cause ‘NoneType’ object has no attribute ‘bounding_box’

which is due to the underlying amazon-textract-prettyprinter, which version needs to be updated