How to add modules from opencv_contrib to opencv-3.4.1?

asked 2018-02-28 10:20:38 -0500

Joshitha gravatar image

I have gone through the readme file from HERE

I have installed cmake and downloaded the the sourcecodes for both opencv and opencv_contrib repository.(Placed them both in the same folder)

Cmake is identified as 'Command not found' and im unable to proceed further

Heres the command I used from the build folder I created in the opencv folder

cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.4.1/modules/

I tried using the GUI as well to include the dpm module but run into this error:

GUI error

It would be really helpful if anyone could post the step by step approach here as there seems to be no place with the one stop solution for this.

edit retag flag offensive close merge delete

Comments

try like this

LBerger gravatar imageLBerger ( 2018-02-28 10:24:47 -0500 )edit
sturkmen gravatar imagesturkmen ( 2018-02-28 10:30:56 -0500 )edit
1

"where is the src code" -- this has to point to your main opencv root folder

use the search box to locate the OPENCV_EXTRA_MODULES_PATH, and give it the absolute path to opencv_contrib-3.4.1/modules/

berak gravatar imageberak ( 2018-02-28 11:00:26 -0500 )edit