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

fixes #62: Modify inference function to show overlapping boxes #73

Closed MaxenceGui closed 3 months ago

MaxenceGui commented 3 months ago

The process_inference_results function has been fixed to ensure that red boxes are adjusted and marked as overlapped only when one has a score that is strictly superior to the other. Additionally, a test has been added to verify the functionality of the modified function.

  • issue #62

I took Bryan's change and modified the check to see if the common area of the two boxes is bigger than 50% of their respective area before labeling them as overlapping.

Modify the inference function to add colors for different seeds and overlap only if the common area of the boxes around the seed is bigger than an area ratio with a default of 50 %.