OpenCV Bounding Box

前端 未结 4 1725
一整个雨季
一整个雨季 2020-12-08 17:59

I am working on software using OpenCV in C++ environment. The objective is to detect a boxing glove and draw a bounding box around gloves contours.

4条回答
  •  借酒劲吻你
    2020-12-08 18:50

    Before finding the contours you should apply morphological filter like erode and dilate. After that, you can find the contours and leave out the small ones by calculating its size, or the with and height of the bounding box. Finally you can eliminate those that are inside an other contour using the hierarchy.

提交回复
热议问题