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

rect - need to be able to coalesce rectangles #21

Open
howff opened this issue May 19, 2023 · 0 comments
Open

rect - need to be able to coalesce rectangles #21

howff opened this issue May 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@howff
Copy link
Collaborator

howff commented May 19, 2023

First use case is the rectangles generated by running OCR at multiple scales of the same image - you often get multiple very similar (but not exactly the same) rectangles. The coordinates will be off by 2 pixels but sometimes by 4 pixels.

These can be merged to the largest bounding box except that

  • DicomRect - need to check they are the same frame and overlay
  • DicomRectText - need to compare the text strings (see https://pypi.org/project/fastDamerauLevenshtein/) and maybe pick the longest if they are very similar or just keep both rectangles otherwise
@howff howff added the enhancement New feature or request label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant