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
Related
I need to update opencv to version 4.5.1 because there is a function that is not implemented in my current version 3.4.2. (I need to use the SIFT_create function, when I google a bit it seems that they removed it from 3.4.2 because of a patent. However, I have also heard from someone that this function has a different name in 3.4.2, so if you know this different name this is fine as well. I googled it but couldn't find anything about it.)
I tried updating opencv in the anaconda navigator but that didn't work. I tried typing
pip install opencv-python==4.0.0.21
(if I replaced 4.0.0.21 by 4.5.1 it couldn't find the version), but when I type
cv2.__version__
afterwards it still says I'm using version 3.4.2. I found this post: How to upgrade OpenCV in Anaconda (windows)? which says I should use
conda install -c conda-forge opencv=4.3.0
I do this, both the exact same command and the command with 4.3.0 replaced by 4.5.1 but in both cases I only get version 4.0.0 (which apparently also doesn't have the SIFT_create function).
Any idea what I could do?
In the meanwhile I found the answer myself (or rather: with the help of non-internet people).
The problem was that while trying to update opencv, I ended up having two versions of opencv at once. I had opencv 4.5.1 and at the same time I had opencv-python 4.0.0.21 installed. When importing opencv, it chose to import opencv-python in stead of just opencv. When I deleted the opencv-python this fixed the problem.
OpenCV 2.3.1 uses libtiff as 3rd party library.
And I want to know which version of libtiff is used for a security reason.
But libtiff source code in opencv dose not show a version.
What is libtiff version of OpenCV 2.3.1?
Or is there any list of 3rd party libraries`s version for opencv ?
I realize how to figure out it.
I do share the information.
check it out from
opencv-2.3.1\3rdparty\tiffvers.h
Version is written in that file.
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.
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.
I had already installed opencv 2.4.2 on my ubuntu 12.04 lts system. But now I have such a situation that I should install opencv 2.2.0 also. I would like to keep opencv 2.4.2. Is it possible?
Reason: I should use econ ECAM32 usb web cam to take images using opencv program but opencv 2.4.2 is not supporting this cam. But opencv 2.2 is supporting this cam.
I would like to hear how we can install opencv 2.2 on system in any other directory, I would prefer on folder in home directory,so that installation should not damage opencv 2.4.2.
I don't see why not. ubuntu 12.04 has opencv 2.3 in it's repository therefore I'm assuming you have installed from the source. when you compile the source you should check ./configure --help first which would probably give you an option for installation directory. It usually looks like:
./configure --prefix=$HOME/opencv2.2
let me know how you proceed..