Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello! I am a developer who is working on various projects using EasyOCR.
I am sending a PR to suggest a function that would be helpful to many people after doing several experiments.
During detection, data with incorrectly configured coordinate vector values is free_list, The horizontal_list has been confirmed to go to data consisting of exact coordinate vector values.
However, this comes as horizontal_list + free_list when receiving the result, so if you need to check the data sequentially, you need to compare the pixels directly and see where they are recognized.
The gif uploaded above is an image that shows that when recognized using EasyOCR directly, the data comes in sequentially and
2
and4
come in last.This means that the free_list is not sorted at the end and is merged as it is.
This is difficult to see at a glance even when
detail=0
is inserted into the detail parameter.So I developed a function that makes it easier to see by aligning the horizontal_list and free_list together when
free_merge
is inserted into the output_format parameter.The gif uploaded above is an image that returns the result value sequentially after adding the function to EasyOCR.
If you enter as above, you want it to be an EasyOCR that returns the results sequentially as follows.
Originally, I added this feature to use, but I'm sure it'll be a necessary feature for someone.
Thank you for reading the long article.