Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Different behaviour of OpenCV Python arguments in 32 and 64-bit systems


OpenCV Python2 samples work fine in 32-bit Python.

But the same code when ran in 64-bit Python, it shows errors saying some keyword arguments are invalid.

For example, in python2 samples works fine in 32-bit Python. But it threw an error as below in 64-bit Python.

Traceback (most recent call last):
  File "", line 54, in <module>
    draw_str(vis, (20, 20), 'time: %.1f ms' % (dt*1000))
  File ".../svn/opencv/samples/python2/", line 60, in draw_str
    cv2.putText(dst, s, (x+1, y+1), cv2.FONT_HERSHEY_PLAIN, 1.0, (0, 0, 0), thickness = 2, lineType=cv2.CV_AA)
TypeError: 'lineType' is an invalid keyword argument for this function

Changing the "lineType" to "linetype" also works good.

Can anyone explain what is the problem here ? Or is it a bug?