Building OpenCV version 3.1¶In order to successfully build OpenCV version 3.1 with support for XIMEA cameras several source files must be replaced:
- Download OpenCV package version 3.1 from here and unzip it.
- Replace the file in ..\sources\modules\videoio\include\opencv2\videoio with videoio_c.h
- Replace the file in ..\sources\modules\videoio\include\opencv2 with videoio.hpp
- Replace the file in ..\sources\modules\videoio\src with cap_ximea.cpp
- Replace the file in the ..\sources\modules\videoio folder with CMakeLists.txt
- rebuild OpenCV WITH_XIMEA option enabled according to the guide for Windows or Linux.