I am a noob and trying to learn OpenCV, I am working on a mini project which triggers certain functions if a person is detected in a specific area of the frame marked with a bounding box, can somebody guide how can I check whether a bounding box [ i.e detected object/person ] is overlapping with an already drawn bounding box[ i.e bounding box specified on a certain position of screen ] are overlapping?
Asked
Active
Viewed 2,392 times
1
-
How do you have the bounding boxes stored? – André Alves May 04 '20 at 17:04
-
Bounding boxes from the objects will be returned by YOLO. – Zeeshan Nazar May 04 '20 at 17:10
-
But do you have the corners? My question is how are they stored, not where they come from. – André Alves May 04 '20 at 17:18
-
YOLO style bounding boxes are in `x,y,w,h` format with `x,y` being the top left corner of the box and `w,h` being the width and height. The duplicate linked by Miki should be more than sufficient to solve your problems. – rayryeng May 05 '20 at 07:01
1 Answers
0
In OpenCV python you'll have to implement this by hand. Check this for an implementation example.

André Alves
- 139
- 7