OpenCV 빌드하기 (OpenCV 3.2 + CUDA + TBB)

2019. 11. 1. 16:11Open source tools

1. Environment
- Window 7 이상
- 64bit
- Visual Studio 
- current setting version
0 OpenCV 3.2
0 Cuda Toolkit 9.0
0 CMake 3.10.0
0 TBB 2018


2. Preparatios
CMake

https://cmake.org/

불러오는 중입니다...

CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the com

 


opencv 

https://github.com/opencv/opencv

 

opencv/opencv

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

github.com

https://github.com/opencv/opencv_contrib

 

opencv/opencv_contrib

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

github.com

CUDA

https://developer.nvidia.com/cuda-downloads

 

CUDA Toolkit 10.1 Update 2 Download

*/

developer.nvidia.com

 


tbb

https://www.threadingbuildingblocks.org/

 

intel/tbb

Official Threading Building Blocks (TBB) GitHub repository. For Commercial Intel® TBB distribution, please click here: https://software.intel.com/en-us/tbb - intel/tbb

github.com

Threading Building Blocks

Flow Graph Designer Features and Sample Walk-Through Flow Graph Designer Features and Sample Walk-Through This video demonstrates the features of Flow Graph Designer while stepping through its workflow using one of the included sample files: samples/code_generation/feature_detectio­n.graphml.



3. Step
- Preparations : Install and download
- cmake
- cuda
- tbb
- opencv
- Run cmake
- Set configuration
- Code Generation
- Build by Visual Studio
- Build All
- Make dll, lib
- OpenCV DLL test
- VS Setting
- Sample Test


   3-① CMake Setting
TBB Setting
TBB_ENV_INCLUDE : 
/tbb2017_20170226oss_win/tbb2017_20170226oss/include/
TBB_ENV_LIB : 
/tbb2017_20170226oss_win/tbb2017_20170226oss/lib/intel64/vc14/tbb.lib
TBB_ENV_LIB_DEBUG : 
/tbb2017_20170226oss_win/tbb2017_20170226oss/lib/intel64/vc14/tbb_debug.lib
TBB_VER_FILE : 
/tbb2017_20170226oss_win/tbb2017_20170226oss/include/tbb_stddef.h
OpenCV Cotrib Setting
OPENCV_EXTRA_MODUKES_PATH
/opencv_contrib-master/opencv_contrib-master/modules
CMake Setting 


4. Video

Step 1 : 준비

https://youtu.be/mCso6cwb2Ng

OpenCV Build Step1 : 준비 (preparation)

 

Step 2 : CMake 설정

https://youtu.be/HEEUeUgb7ks

OpenCV Build Step2 : CMake 설정 및 빌드 시작

Step 3 : build, VS 셋팅 그리고 예제 테스트

https://youtu.be/PhEzgRmk0xM

OpenCVBuild Step3 : build, setting 그리고 예제코드 동작하기

 

'Open source tools' 카테고리의 다른 글

Ubuntu에 RDP 구성  (0) 2021.09.07
Cuda Encoder 사용하는 방법  (0) 2019.12.09
Zookeeper znode type  (0) 2019.11.01
Docker Zookeeper server install  (0) 2019.11.01
Zookeeper Commands - Four Letter Words  (0) 2019.11.01