google_ml_kit_flutter icon indicating copy to clipboard operation
google_ml_kit_flutter copied to clipboard

Returned Text Recognition Text is out of order.

Open sidetraxaudio opened this issue 2 years ago • 1 comments

When detecting text from an image, the lines of text returned are not in order that they appear in the input image This might be due to a multi threading issue under the hood? Possibly a performance optimization is causing this where less complex strings are returned earlier.

To Reproduce Image files are attached to this post with an image that duplicates the problem. The sample problem output is also included from the console. When processed, the order of the lines is detected incorrectly.

EXAMPLE FROM ATTACHED IMAGES: The heading 'address' has been returned much earlier. This creates an issue where we can't index+1 the static line 'address' when it is detected in order to retrieve the actual address. Postcode/Zipcode is also out of order.

Expected behavior Lines detected should be output in the exact order they appear in the source image.

Screenshots

image text

Platform (please complete the following information): Android Emulator 11

sidetraxaudio avatar Nov 26 '23 23:11 sidetraxaudio

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 07 '24 19:10 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Feb 11 '25 12:02 github-actions[bot]