1. opencv 다운로드
- release 배포판
https://github.com/opencv/opencv/releases/tag/3.4.9
Release OpenCV 3.4.9 · opencv/opencv
OpenCV 3.4.9 has been released.
github.com
- opencv contrib release 배포판
https://github.com/opencv/opencv_contrib/releases
Releases · opencv/opencv_contrib
Repository for OpenCV's extra modules. Contribute to opencv/opencv_contrib development by creating an account on GitHub.
github.com
- 압축 해제 시 위치를 바로 선택하는게 좋음
2. Cmake 설치
Download CMake
You can either download binaries or source code archives for the latest stable or previous release or access the current development (aka nightly) distribution through Git. This software may not be exported in violation of any U.S. export laws or regulatio
cmake.org
- 설치 시 PATH 자동 생성 설정
3. Cmake 설정
- opencv의 sources와 build의 경로를 가각 설정
- Generate 를 MinGW로 변경
-설치가 진행되며 5~7분 정도 걸린다.
- 추가하면 좋은 것들
4. opencv build
- cmd 에서 opencv의 build 폴더로 이동 후 mingw32-make 명령 실행 빌드 하는데 시간이 소요됩니다
cd C:/opencv/build
mingw32-make
mingw32-make install
참고자료
'C++ > Basic' 카테고리의 다른 글
Python의 한계와 C++의 필요성: 영상처리 프로그램에서의 고려사항 (0) | 2024.06.06 |
---|---|
[C++] VS code C++ 환경 세팅 (0) | 2024.06.06 |