Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

An error occurred during the contour-related code.

$
0
0
std::vector>::iterator itc = contours.begin(); // for all contours int cntCheck = 0; while (itc != contours.end()) { // verify contour size size_t contourSize = itc->size(); if ((contourSize > 30) && (contourSize < 600)) { ++itc; cntCheck = cntCheck + 1; } else { itc = contours.erase(itc); } } This code is removing the contour that wrong size This was code for normal operation in visual studio 2013. but This does not work in visual studio 2015. When less than 30 works well. But an error is greater than 600. How do i fix this? thanks for reading. ![image description](/upfiles/14395671499331785.jpg)

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>