Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

matchShapes python return error

Hello... I try to use matchShapes in python but got error.

Traceback (most recent call last):
File "ZobnicekSlika.py", line 72, in <module> print cv2.matchShapes(cifra2, co, cv2.CONTOURS_MATCH_I1, 0.0) AttributeError: 'module' object has no attribute 'CONTOURS_MATCH_I1'

The line on question is: print cv2.matchShapes(cifra2, co, cv2.CONTOURS_MATCH_I1, 0.0)

I use python 2.7 and opencv 3.0 Thanks

click to hide/show revision 2
retagged

updated 2014-10-29 04:30:24 -0500

berak gravatar image

matchShapes python return error

Hello... I try to use matchShapes in python but got error.

Traceback (most recent call last):
File "ZobnicekSlika.py", line 72, in <module> print cv2.matchShapes(cifra2, co, cv2.CONTOURS_MATCH_I1, 0.0) AttributeError: 'module' object has no attribute 'CONTOURS_MATCH_I1'

The line on question is: print cv2.matchShapes(cifra2, co, cv2.CONTOURS_MATCH_I1, 0.0)

I use python 2.7 and opencv 3.0 Thanks