Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 49

import cv2 in ros

$
0
0
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

Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>