Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

open cv 3.0, findContours return "too many value to unpack"

Switching to OpenCV 3.0.0-tp2 / Version control: 2.4.8, my previous working code using findContours() fails

ret, frame = self.cap.read()
edges = cv2.Canny(frame,100,200)
contours, hierarchy = cv2.findContours( edges, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
>>> too many values to unpack

Best regards

click to hide/show revision 2
retagged

updated 2014-04-24 06:49:11 -0600

berak gravatar image

open cv 3.0, findContours return "too many value to unpack"

Switching to OpenCV 3.0.0-tp2 / Version control: 2.4.8, my previous working code using findContours() fails

ret, frame = self.cap.read()
edges = cv2.Canny(frame,100,200)
contours, hierarchy = cv2.findContours( edges, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
>>> too many values to unpack

Best regards