본문 바로가기
C++/[라이브러리] OpenCV

[C++, OpenCV] download contrib(extra modules) to an existing OpenCV directory

by SeoKhan 2022. 4. 27.

 

https://cmake.org/download/

 

Download | CMake

Current development distribution Each night binaries are created as part of the testing process. Other than passing all of the tests in CMake, this version of CMake should not be expected to work in a production environment. It is being produced so that us

cmake.org

1. Download CMake installer

 

 

 

https://github.com/opencv/opencv_contrib

 

GitHub - opencv/opencv_contrib: Repository for OpenCV's extra modules

Repository for OpenCV's extra modules. Contribute to opencv/opencv_contrib development by creating an account on GitHub.

github.com

2. Download contrib (1)
2. Download contrib (2)

 

 

 

https://github.com/opencv/opencv

 

GitHub - opencv/opencv: Open Source Computer Vision Library

Open Source Computer Vision Library. Contribute to opencv/opencv development by creating an account on GitHub.

github.com

3. Download OpenCV (According to your version)
3. Download OpenCV

 

 

 

4. Install CMake (1)
4. Install CMake (2)

 

 

 

5. unzip opencv and opencv_contrib (1)
5. Create directory, any name (2)
5. Move unziped files to created dicrectory (3)

 

 

 

6. Excute CMake on administrator rights (1)
6. Select [Browse Source] (2)
6. Select unzipped OpenCV dicrectory (3)
6. Confirm source path, and write build path (any name) (4)
6. Click [Configure] and if don't create build directory click [Yes] (5)
6. Select on your Visual Studio version and click [Finish] (6)
6. If check this message, completely done (7)

 

 

 

7. Search "extra" and click path butten (1)
7. Select unzipped contrib's modules directory (2)
7. Search "test" and checkout two options (3)
7. Search "nonfree" and check option (4)

7. Search "build" and checkout this options for build speed (5)

7. Search "with" and checkout this options for build speed (6)

 

 

 

 

8. Click [Configure]

 

 

 

9. if done, search "world" and check this option, after than click [Configure]

 

 

 

10. Click [Generate] (1)
10. Open this file on build path<6(4)>

 

 

11. Select "Debug" and right click "INSTALL" file, after than click "build" (1)
11. Check success massage only (2)
11. Change "Debug" to "Release" and&nbsp;Repeat the same process

 

 

 

12. Enter this path and then, Move or Copy include and x64 directory to your OpenCV directory

내부의 필요한 파일만 골라서 옮겨도 됩니다.

 

참조. https://webnautes.tistory.com/1036

'C++ > [라이브러리] OpenCV' 카테고리의 다른 글

[C++, OpenCV] imgproc, error C2589  (0) 2022.06.10