Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I bet you are using the current OpenCV's master branch: here the return statements have changed, see http://docs.opencv.org/trunk/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html?highlight=cv2.findcontours#cv2.findContours.

Thus, change the correspinding line to:

_, contours, _ = cv2.findContours(skin_ycrcb, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

Or: since the current trunk is still not stable and you probably will run in some more problems, you may want to use OpenCV's current stable version 2.4.9.