Different behaviour of OpenCV Python arguments in 32 and 64-bit systems (Bug #2237)


Added by abid rahman over 12 years ago. Updated over 12 years ago.


Status:Done Start date:2012-08-04
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:python bindings
Target version:2.4.3
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Hi,

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?


Associated revisions

Revision 1f3206af
Added by Roman Donchenko about 11 years ago

Merge pull request #2237 from ivylee:lbph_chi_square_alt

History

Updated by Marina Kolpakova over 12 years ago

  • Category set to python bindings

Updated by Daniil Osokin over 12 years ago

Abid, you can ask it, as usuall, at http://answers.opencv.org/questions/.

Updated by Andrey Kamaev over 12 years ago

The issue is most probably fixed in ff90c3eb

Please comment if problem is still reproducible on the OpenCV master.

  • Status changed from Open to Done
  • Target version set to 2.4.3
  • Assignee set to Vadim Pisarevsky

Also available in: Atom PDF