import cv2 in ros
Hi,
I have installed opencv 3.4.2 from source with CUDA support in my tX2 and i also i have installed ros which include opencv 3.3.1dev I have managed to use the correct opencv version when i use ros with cpp using the CMakeLists but when i try to use opencv in python, the opencv used is the one from ros which i dont want
import cv2 as cv
print cv.__version__
3.3.1dev
I would like to be able to use the opencv which is in the repository:
usr/local/lib/python2.7/dist-packages
I guess python will look directly in the folder of ros which contains the lib (opt/ros/kinetic/lib/python/cv2.so) but i would like to avoid this and link directly to the global one Moreover after symlink the opencv from source to my virtual env, it seems that even the virtual env use the opencv from ros.
Does someone have an idea how to do this?
Thank you
are you really using Python 2.5? All released ROS Python packages target 2.7 at least, so that might complicate this further.
my bad. i mistake on python version i use 2.7 as u said but it doesnt change my problem
any news? tackling the same..
No i didnt solve my problem so i just used the opencv from the ROS library. If you find some solution, please let me know