Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Fixed boxes_from_mask avoiding tiny boxes - #150

Open
LucaAngioloni wants to merge 1 commit into
Sanster:mainfrom
LucaAngioloni:main
Open

Fixed boxes_from_mask avoiding tiny boxes#150
LucaAngioloni wants to merge 1 commit into
Sanster:mainfrom
LucaAngioloni:main

Conversation

@LucaAngioloni

@LucaAngioloni LucaAngioloni commented Dec 1, 2022

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant