Ask Your Question
1

installing extra modules

asked 2015-07-09 02:28:37 -0600

mack_emb gravatar image

Hi there, I am facing the same problem. But i am little confused with the instructions.

$ cd <opencv_build_directory>

$ cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>

$ make -j5

which is build directory, opencv contrib and opencv source directoy. As far as i am able to get it

build_directory:- is directory in which i made the build folder while installing opencV. in my case it will be "Downloads/opencv-3.0.0-rc1/build"

opencv_contrib :- is the folder which i downloaded from git. in my case "Downloads/opencv_contrib-master"

source_directory :- i am not getting any clue here,my guess is its in "usr/local/include/opencv2" ??

I have tried options but nothing seem to solve my problem.

Please help me out here. Thank you

edit retag flag offensive close merge delete

Comments

guidance or explanation of what exactly is happening would be also of great help. thank you

mack_emb gravatar imagemack_emb ( 2015-07-09 02:31:27 -0600 )edit
4


cd /Downloads/opencv-3.0.0-rc1 # your src dir
mkdir build                      # your build dir
cd build                                  
cmake  -DOPENCV_EXTRA_MODULES_PATH=/Downloads/opencv_contrib-master/modules .. # last 2 dots point to src dir
berak gravatar imageberak ( 2015-07-09 02:36:45 -0600 )edit

I installed the modules successfully. But still i am getting the same error.. ie:It have not solved the problem i was originally facing,which is error: ‘FaceRecognizer’ was not declared in this scope cv::Ptr<facerecognizer> model, mouthModel;

To which i was suggested to install the extra modules. But that doesnt seem to help either.

mack_emb gravatar imagemack_emb ( 2015-07-09 04:10:30 -0600 )edit
  • "I installed the modules successfully" - good ;)
  • "‘FaceRecognizer’ was not declared in this scope" - did you forget a namespace ? Ptr<face::FaceRecognizer> reco = face::createLBPHFaceRecognizer();
berak gravatar imageberak ( 2015-07-09 04:19:04 -0600 )edit

I actually tried that, but i get the following error.

error: ‘face’ cannot appear in a constant-expression cv::Ptr<face::facerecognizer> model, mouthModel;

mack_emb gravatar imagemack_emb ( 2015-07-09 04:43:20 -0600 )edit

rather start a new question for that, and show the relevant code ?

berak gravatar imageberak ( 2015-07-09 04:50:21 -0600 )edit

Ok....I was thinking of the same. Thank you. Appreciate your prompt reply :-)

mack_emb gravatar imagemack_emb ( 2015-07-09 05:01:18 -0600 )edit

@berak No extra modules found in folder: /Downloads/opencv_contrib-master/modules . What has happened ??

Giorgos_ts gravatar imageGiorgos_ts ( 2016-04-02 14:19:38 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2020-01-06 20:56:40 -0600

plnm gravatar image

cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory> <opencv_contrib>: is the folder which u downloaded from git. in my case "Downloads/opencv_contrib-master" <source_directory> : is the folder which u downloaded from git. in my case "Downloads/opencv"( it's your opencv dowload source)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-07-09 02:28:37 -0600

Seen: 8,602 times

Last updated: Jul 09 '15