aws-samples / aws-samples/amazon-textract-code-samples
Grouping lines together
- Dominant language
- Jupyter Notebook
- Stars
- 449
- Forks
- 262
- PR merge metrics
- No merged PRs in 30d
Description
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:

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
```
Contributor guide
Research direction
Start with the referenced python/01-detect-text-local.py example and inspect how its detected LINE blocks are handled for the supplied image. Determine whether the example or its documentation explains grouping those blocks, and consider the issue addressed when the requested single-line layout is clearly explained or demonstrated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100