aws-samples / amazon-textract-code-samples

Amazon Textract Code Samples
MIT No Attribution
406 stars 263 forks source link

Grouping lines together #46

Open bvbg1 opened 1 year ago

bvbg1 commented 1 year ago

I'm using this example: https://github.com/aws-samples/amazon-textract-code-samples/blob/master/python/01-detect-text-local.py

For this image:

line

I'm getting:

this is one
line
second line
more here

How can we group 'LINES' tokens in a single line? The output I'm looking for is:

this is one     line
second line                more here