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

asked 2012-07-27 18:39:09 -0600

Abid Rahman K gravatar image


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, facedetect.py 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 "facedetect.py", line 54, in <module>
    draw_str(vis, (20, 20), 'time: %.1f ms' % (dt*1000))
  File ".../svn/opencv/samples/python2/common.py", 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?

edit retag flag offensive close merge delete


has this bug been fixed?? because I am being able to reproduce this bug..how do i fix it?

adrita gravatar imageadrita ( 2014-06-21 02:53:11 -0600 )edit

@adrita you might want to open a new issue on github so someone looks into this.

benT gravatar imagebenT ( 2016-10-18 11:11:03 -0600 )edit