Build OpenCV
- Press
configure
, choosevisual studio 2015
, finish - Then press
generate
- Open
OpenCV.sln
underbuild/
- Build it using
Debug
,Release
Right click > build
- right click > build
- switch to
Release
mode and build again
- [Windows] Setting up environment variable
- add
<opencv>/bin
intoPATH
Add new environment variable
- add new env named
OpenCV_DIR
, value as<opencv>/build
- it may need logout to apply setting, you can check it by
echo %PATH%
,echo %OpenCV_DIR%
Build with EXTRA MODULES
- In step
2. Build opencv with cmake
, pressconfigure
- Set up
OPENCV_EXTRA_MODULES_PATH
to proper path(<opencv_contrib>/modules
)

- Press
configure
again, thengenerate
To see more details instructions, see opencv_contrib README
Travis.yml example
1 | language: |