what is best way to use different version of opencv?
Hello all,
I am running ROS-melodic on ubuntu 18.04 everything apt installation method.
This installation integrates opencv version 3.2 which is quite old and does not support some important features.
For example, I need to include opencv2/dnn.h for image detection but opencv 3.2 does not have these headers. So I searched for installing later version of opencv by cmake method however they all require removing previously installed opencv and as consequences, it removes many important ROS packages and messed up my previous settings.
Even though I catkin install all those packages manually not all problems solved and some of my package does not build properly.
So I am asking if there is a way to integrate different version of opencv simultaneously with existing apt installed opencv? Any suggestions would be much appreciated.
If you install a more updated version of OpenCv, will you use the melodic-opencv at all ? Or just keep so that you won’t mess up other packages by removing that.
Thanks for reply. Are you talking about http://wiki.ros.org/vision_opencv ? I'm just curious if installing this package will enable parallel installation of opencv.
OpenCv is listed as dependency of this package so if you do a rosdep, it should install a version of OpenCv, but you can play with CmakeLists to select a desired version for your own package.