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

Fixed boxes_from_mask avoiding tiny boxes #150

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LucaAngioloni
Copy link

@LucaAngioloni LucaAngioloni commented Dec 1, 2022

This PR tries to avoid the situation where the threshold or the mask have tiny dots or tiny contours (I had instances with some images where there are 200 or more boxes found but only 1 was relevant). This is mostly due to jpeg compression artefacts on the mask or other issues related to the mask (usually not present when drawing the mask directly through the web app).

This makes the algorithm really slow because it has to compute inpainting a lot of times for tiny boxes and doesn't provide a good result.

I am using the contour area as a discriminant.

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

Successfully merging this pull request may close these issues.

1 participant