vector<vector<Point> >::iterator itc= contours.begin();vector<RotatedRect> rects;//Remove patch that are no inside limits of aspect ratio and area. while (itc!=contours.end()) {//Create bounding rect of objectRotatedRect mr= minAreaRect(Mat(*itc));if( !verifySizes(mr)){itc= contours.erase(itc);}else{++itc;rects.push_back(mr);}}
- 1 回答
- 0 关注
- 113 浏览
添加回答
举报
0/150
提交
取消