opencv_contrib library installation - ubuntu

asked 2022-05-28 21:06:47 -0500

dembele123 gravatar image

I am trying to additionally install opencv_contrib to already installed opencv 4.2 which header files are located in /usr/include/opencv4/. All tutorials are written for manual installation which I can't because ROS noetic (which I use) is dependent on opencv 4.2 version. I am wondering where can (or can I?) i find build folder for installed OpenCV 4.2 so that I can follow the installation tutorial? I tried manually install new version of opencv with opencv_contrib (I followed tutorial) and then I have a dependency issue (I guess because all files from library have #include<opencv2 ---.hpp=""> which leads to usr/include where is opencv4.2 and not #include <opencv4 opencv2=""> which point to /usr/local/include) .

Sorry to bother and thank You in advance

edit retag flag offensive close merge delete



In apt for ubuntu 20, I see a package named libopencv-contrib4.2. Does it support the feature you want?

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-05-29 12:04:55 -0500 )edit

Yes, thank You very much. Which is best way to you available packaged from apt?

dembele123 gravatar image dembele123  ( 2022-05-29 15:51:23 -0500 )edit

Sorry, I do not understand what question you are asking.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-05-29 19:04:49 -0500 )edit