OpenCV for python 3.X - opencv

Does anyone know if I can use the OpenCV library in python 3.X? or should I stick to using scikit-image for task like object recognition?
I want to try out openCV but decided last year to swich from 2.7.
I searched for packets here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
But none exist for python 3

ccsv: As of 4 June 2015, Christoph Gohlke's site is now updated with the latest release of OpenCV 3.0 with Python 3.x bindings:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv

AFAIK you can build the latest Trunk of OpenCV yourself with Python 3.x bindings.
As you can see here in the logs, Python 3.x support was added 2013 already and should work.
For information about how you can build OpenCV look here.

Related

Does a specific Python/C++ version need a specific openCV version?

I'm using python 2.7 in a ROS project with openCV 2.4.8 but this version of openCV doesn't have the barcode detection module. Can I update openCV using the same version of python (2.7) and still working?
I don't know if I can use any version of opencv regardless of the python version.
Thanks in advance

Is OpenCV supported on Python 3 yet?

I already have part of a program running in Python 3 but I need OpenCV (or SimpleCV), for a robotic vehicle, but I haven't found any install commands that seem to work, other than for Python 2.7.
If it is compatible could you please include instructions (/links to) for installation of the module?
I am using Ubuntu 14.
Maybe a little late to answer, but it's actually supported on OpenCV version 3 (in alpha state nowadays). I have successfully managed to install it, on MacOS, but I guess it would be similar on Ubuntu.
Now you have separated options for python2 and python3 when using Cmake. So you'll have to set those to make it work. That's all I needed to set:
BUILD_opencv_python3
PYTHON3_LIBRARY
PYTHON3_INCLUDE_DIR
PYTHON3_INCLUDE_DIR2
PYTHON3_NUMPY_INCLUDE_DIRS
...
Here you can find more detailed description: Link
Luigolas is correct that OpenCV 3.0 supports Python 3.x bindings. It was in release candidate status since April and the production version was released on 4 June 2015. Unfortunately for some reason the downloadable installation program on the OpenCV site does not contain a Python 3.x-compatible cv2.pyd file.
OP asked about Ubuntu but for those requiring a Windows installer, use Christoph Gohlke's site, which maintains Windows binaries for many Python packages, including OpenCV 3.0 with Python 3.x bindings. Visit:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
To install, just download the 64-bit or 32-bit .whl file appropriate for your system, then run pip install [filename]. Then the instruction import cv2 should work in your Python 3.x interpreter.

How to Integrate OpenCV_2.4.6 with bloodshed dev C++?

I googled this question a lot but couldn't find any solution? Please help.I found help for OpenCV 2.0 and 2.1 but that doesn't work for the latest version 2.4.6. Also I have no idea what CMake and MingW is?
Here is an official installation guide. You should not use dev-c++ because it is old, outdated software. Try some modern IDE like code::blocks or eclipse.

OpenCV 2.4.4 and QT5

Is the new OpenCV version supporting QT5 or is still using QT4?
I was looking in the OpenCV changelog to check if the code is compatible with QT5 but could not find any information.
Did someone compiled OpenCV with QT5?
No, OpenCV 2.4.4 doesn't support Qt 5 yet.
However, this answer shows how to build OpenCV 2.4.3 with Qt 5. I believe you'll need to do minor changes to make it work for 2.4.4.

About installing the open cv library

sir,
I have tried my level best to install open cv library 2.2.0 version.but it has'nt suceeded
it shows that errors in linking the library hughigh,
whether we wanted to insatll the ipp library prior to install the opencv?
please help me ?..............
I can only recommend the install advice on the OpenCV page. If you are using a unix download the source of the library you want to install and then use cmake to install the library. That usually works fine for me.
Try installing the 1.1 version of OpenCV.
The 2.x version is brand new and as of Nov 1 2009 you will have difficulty finding documentation for that. The 1.1 version of OpenCV, on the other hand, is very well documented and you should have no trouble finding online tutorials for your platform that walk you through the installation process step-by-step.
As an aside: "IPP" refers to Intel's Performance Primitives. In the 1.1 version these are entirely optional. OpenCV does not require them. If you have the Performance Primitives installed, however, your OpenCV code may run faster. (For me it cut down my image processing time by a factor of five.) Once you get everything up and running you can purchase the IPP library from intel here: http://software.intel.com/en-us/intel-ipp/

Resources