Building OpenCV 3.0.0-beta Windows Python 3.4

asked 2015-04-20 06:13:16 -0500

NumesSanguis gravatar image

updated 2015-04-20 07:06:30 -0500

I wish to get OpenCV working on my Windows 7 x64 for Python 3.4. Even though the OpenCV 3 Alpha page states that there is Python 3 support (http://opencv.org/opencv-3-0-alpha.html), the pre-compiled package only contains opencv/build/python/2.7 and no 3(.4).

So following the answer on http://stackoverflow.com/questions/28..., I'm trying to build OpenCV 3.0.0 from source following the following tutorial: http://docs.opencv.org/doc/tutorials/....

However since this tutorial is a bit outdated, I've some problems following certain steps.

  • The OpenNI link is dead, so I installed KinectSDK-v1.6-Setup.exe (https://www.microsoft.com/en-us/downl...) and OpenNI-Windows-x64-2.2.msi (http://structure.io/openni). Is this good enough?
  • The Qt framework link is dead. I have Visual Studio 2013, so do I need this? or how do I just get the required files without downloading the whole Qt development kit (http://www.qt.io/)?
  • CMake: I got the latest version from OpenCV from Github, but it doesn't have the folders "Source" and "Builds", so what do I select as folders in CMake (3.2.2)? Sorry I'm new to this.

Any help is greatly appreciated (or a link to a compiled Python 3.4 cv2.pyd)

stackoverflow: http://stackoverflow.com/questions/29...

edit retag flag offensive close merge delete

Comments

Qt and OpenNI are optional, you can build without them. You will need python3 with development version and numpy installed. You should create build folder near opencv folder (where you have the sources). Then go into build and run cmake -G"Visual Studio 12 Win64" ../opencv and check Python 3 section in the output.

mshabunin gravatar imagemshabunin ( 2015-04-20 10:02:18 -0500 )edit