aws-samples / aws-samples/amazon-textract-textractor

getting text from detect_document_text

Open
#180 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jupyter Notebook
Stars
493
Forks
163
PR merge metrics
No merged PRs in 30d

Description

How can I get the text in natural reading order (left to right) with detect_document_text with line break info?

Example image:
test

document.text output:
```
quick a brown fox
jumps over the lazy dog
word3
word4
word5 word7
word1 word2
word8word9 word10
```

document.lines output:
`[quick a brown fox, jumps over the lazy dog, word3, word4, word5 word7, word1 word2, word8word9 word10]
`

document.words output:
`[a, brown, the, fox, over, jumps, dog, quick, lazy, word7, word3, word4, word2, word5, word1, word8word9, word10]
`

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.