ai-cfia / nachet-backend

A flask-based backend for Nachet to handle Azure endpoint and Azure storage API requests from the frontend.
MIT License
1 stars 3 forks source link

Drawing "red box" error #62

Closed TaranMeyer closed 3 months ago

TaranMeyer commented 4 months ago

Description It looks like the model for segmenting out the individual seeds and drawing red boxes around them has an issue when the red boxes would overlap, due to the shape, proximity, or orientation of the seeds.

Expected behavior A red box would be drawn around each seed, overlapping slightly due to the angled orientation of the seeds

Actual Behavior Only a single box is visible, surrounding the first (leftmost, higher) seed. Both IDs appear to be attached to that box. When I rotate the seeds so that the red boxes can be drawn without them overlapping, they appear as expected.

Supporting Images To better understand the issue, please add screenshots:

image image

rngadam commented 4 months ago

@MaxenceGui can you provide an explanation as to why this is a backend issue rather than a model or frontend issue?

MaxenceGui commented 4 months ago

I want to investigate this in the backend before assuming it's a frontend issue because in the process_inference_request line 93 there a double for loop that decide if a box need to be hide if it's overlapping another one. If my assumption is wrong, I will transfer this issue to the frontend.