Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I also had a segmentation fault using findContours

Like you I used:

findContours(Segmented, contours, hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE);

which failed at runtime as well as the following:

findContours(Segmented, contours, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE);