saviopalmieri / ctypes-opencv

Automatically exported from code.google.com/p/ctypes-opencv
0 stars 0 forks source link

Required module not imported in interfaces.py #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create and IPL image from any source img = ...
2. cvIplImageAsBitmap(img)

What is the expected output? What do you see instead?
you would expect it to return a wxBitmap instead you get this error:
Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Python25\lib\threading.py", line 486, in __bootstrap_inner
    self.run()
  File "<string>", line 34, in run
  File "C:\Python25\lib\site-packages\opencv\interfaces.py", line 37, in
cvIplImageAsBitmap
    flags = CV_CVTIMG_SWAP_RB
NameError: global name 'CV_CVTIMG_SWAP_RB' is not defined

What version of the product are you using? On what operating system?
python 2.5, opencv 1.1prea, newest version of ctypes-opencv

Please provide any additional information below.

fix this by adding:   from opencv.highgui import *    to the top of the
interfaces.py module. 

Original issue reported on code.google.com by SCColbert@gmail.com on 6 Mar 2009 at 4:29

GoogleCodeExporter commented 8 years ago
Argh. My bad. I'll fix it soon. Thanks for having raised the issue.

Minh-Tri

Original comment by pmtri80@gmail.com on 6 Mar 2009 at 4:45

GoogleCodeExporter commented 8 years ago
Fixed. Thanks.

Original comment by pmtri80@gmail.com on 5 Apr 2009 at 6:52