Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voting algorithm #4

Open
xtrojak opened this issue Oct 18, 2023 · 1 comment
Open

Voting algorithm #4

xtrojak opened this issue Oct 18, 2023 · 1 comment

Comments

@xtrojak
Copy link
Collaborator

xtrojak commented Oct 18, 2023

Improve the algorithm for deciding what text is present in a region based on three inputs from supported services. Currently, we make many assumptions and use rather straightforward approach. Here are some ideas:

  • give higher priority if we are expecting a number or if we have a set of expected words/values
  • work with with individual words and their positions instead of whole lines
  • if majority says there is one item and one service says its two perhaps the majority is right, but there might be some exceptions

If voting on words fails, by default merge all together, do the pairwise align and vote on letters. Alternatively, choose output from only one service - at least the words will make sense?

@xtrojak
Copy link
Collaborator Author

xtrojak commented Oct 23, 2023

There are cases when text from multiple ROIs is joined into single identified text, with coordinates exceeding ROIs bounds. These should be given a lower priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant