First time here? Check out the FAQ!
answered 2017-04-06 16:49:23 -0600
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.