Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int cmin = 50;
- int cmax = 1000;
- std::vector<cv::Rect> rects;
- std::vector<std::vector<cv::Point>>::iterator itc = contours.begin();
- while (itc != contours.end()) {
- if (itc->size() > cmin && itc->size() < cmax){
- //std::cout << "asu" << std::endl;
- human.detectMultiScale(eqhistObj, rects);
- for (unsigned int i = 0; i<rects.size(); i++) {
- cv::rectangle(eqhistObj, cv::Point(rects[i].x, rects[i].y),
- cv::Point(rects[i].x + rects[i].width, rects[i].y + rects[i].height),
- cv::Scalar(0, 255, 0));
- }
- ++itc;
- }
- else{ ++itc; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement