Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the opencv2.4 version of findContours() only returns 2 args, not 3, like in thr opencv3 version.

 (contours, hierarchy)=cv2.findContours(red,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)

should do the trick for you.