http_zacurr.tistory.com_553.pdf
위 사이트에 나와있는대로 opencv를 cmake로 빌드할때, opencv_contrib도 다운받아서 같이 빌드했다.
아래사이트에도 나옴.
https://github.com/opencv/opencv_contrib/blob/master/README.md
-
start cmake-gui
-
select the opencv source code folder and the folder where binaries will be built (the 2 upper forms of the interface)
-
press the
configure
button. you will see all the opencv build parameters in the central interface -
browse the parameters and look for the form called
OPENCV_EXTRA_MODULES_PATH
(use the search form to focus rapidly on it) -
complete this
OPENCV_EXTRA_MODULES_PATH
by the proper pathname to the<opencv_contrib>/modules
value using its browse button. -
press the
configure
button followed by thegenerate
button (the first time, you will be asked which makefile style to use) -
build the
opencv
core with the method you chose (make and make install if you chose Unix makfile at step 6) -
to run, linker flags to contrib modules will need to be added to use them in your code/IDE. For example to use the aruco module, "-lopencv_aruco" flag will be added.
'C,C++ > OpenCV' 카테고리의 다른 글
OpenCV 4.2.0이 정식 릴리즈되었습니다. 이번 릴리즈에서 드디어 CUDA를 이용하여 DNN 모듈을 실행할 수 있게 되었네요. 대박입니다! (0) | 2019.12.23 |
---|---|
“The program can't start because opencv_world300.dll is missing from your computer” error in C++ (0) | 2016.10.19 |
Print out the values of a (Mat) matrix in OpenCV C++ (0) | 2016.09.28 |
Print out the values of a matrix in OpenCV C++ (0) | 2016.09.28 |
OpenCV 3.1 개발환경 셋팅 (0) | 2016.09.19 |