OpenCV 2.0 and Python -
I can not find an example to run Python programs. When executing the Python command, I get a message called "importError: no _cv" from the "opencv import cv" stacked in the site-package directory, but _cv.py is not anywhere _cv.py see step 5 below.
MS Windows XP, VC ++ 2008, Python 2.6, OpenCV 2.0
Here's what I have done.
- MS Windows Installer for downloaded and ran OpenCV2.0.
- Download and install CMake
- Download and install SWIG
- After unchecking "ENABLE_OPENMP" in RAM CKK CMake GUI, I will install INSTALL.vcproj And was able to create OpenCV using BUILD_ALL.vcproj. I do not know what the difference is, so I created everything under those project files. C example programs go fine.
- The contents of my installed Python 2 / lib / site-packages directory in OpenCV2.0 / Python2.6 / lib / site-packages are copied. I think there is an old _cv.pyd and an old libcv.dll.a in it.
After step 1 (installer) simply enter C: OpenCV 2.0 \ Copy everything from Python2.6 \ Lib \ site-packages
to C: \ Python26 \ Lib \ site-packages
(standard setup path assumed) is all this.
If you have a webcam installed, you try Camshift.demo in C: OpenCV 2.0 \ samples \ python
can do. The stuff ( C: \ OpenCV2.0 \ samples \ swig_python
) does not work as someone has written above. Open Citizens are working on this. Here's the full picture:
31/03/10 (Hopefully) Next OpenCV official release: 2.1.0 The reason is 31 March 2010. Link: //opencv.willowgarage.com/wiki/Wellowagage/Wellcome/Announcements.htm
04/03/10 [james] New Python 5:36 pm On 4th March, samples through the API link again Write: //twitter.com/opencvlibrary
12/31/09 We've got more seriousness about OpenCV's software engineering. Now we have a full C ++ and Python interface. Links: //opencv.willowgarage.com/wiki/OpenCV%20Monthly
9/30/09 Many (actually, most) SWIG-based python samples do not work right now. Due to this problem is being investigated and as soon as the intermediate update of the OpenCivian Python package is resolved, the same will be released. Link: //opencv.willowgarage.com/wiki/OpenCV%20Monthly
Comments
Post a Comment