Ask Your Question
0

Building opencv 3.2 with opencv_contrib on Windows 10 -- how to install?

asked 2017-01-26 11:02:13 -0500

updated 2017-01-26 11:15:07 -0500

LBerger gravatar image

Please note, I cannot publish links, so I've tried to hack together faux links below

I followed the instructions here: with minor modifications to include opencv_contrib (I set the OPENCV_EXTRA_MODULES_PATH field to the path ~/opencv_contrib/modules). Before beginning, I used git to checkout the 3.2.0 tagged commit for each project, which I had cloned from github.

I completed Step 16, but could not find the 'INSTALL' option for Step 17. Step 16 had several errors. See this screenshot: See also error code pasted below.

I did find an option CMakeTargets > INSTALL (see screenshot ), but it didn't seem to do anything? It looks like it just rebuilt the project. Much faster than the first time.

I'm using Visual Studio 2012. Thanks in advance for any help!

Error   1   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  235 1   opencv_xfeatures2d
Error   2   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  243 1   opencv_xfeatures2d
Error   3   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  244 1   opencv_xfeatures2d
Error   4   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  254 1   opencv_xfeatures2d
Error   5   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  265 1   opencv_xfeatures2d
Error   6   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    282 1   opencv_dnn
Error   7   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    283 1   opencv_dnn
Error   8   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    284 1   opencv_dnn
Error   9   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    285 1   opencv_dnn
Error   10  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    286 1   opencv_dnn
Error   11  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    287 1   opencv_dnn
Error   12  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    289 1   opencv_dnn
Error   13  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    290 1   opencv_dnn
Error   14  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    291 1   opencv_dnn
Error   15  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    293 1   opencv_dnn
Error   16  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    298 1   opencv_dnn
Error   17  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-26 11:20:00 -0500

LBerger gravatar image

updated 2017-01-26 11:22:47 -0500

There is no round function in vs 2012. you have to modify source code try something like this

inline double round(double value) { return value < 0 ? -std::floor(0.5 - value) : std::floor(0.5 + value); }

you can read this post too

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-01-26 11:02:13 -0500

Seen: 885 times

Last updated: Jan 26 '17