OpenCV 3.1 with XIMEA support

OpenCV 3 is amazing for accessing XIMEA cameras. However, there’s still the lack of a pre-built library of OpenCV 3, especially 3.1, with XIMEA support. Here, I provide you a pre-built package of OpenCV 3.1 built with XIMEA for Python 2.7  and Python 3.5 for Windows machines.

Please note: I compiled OpenCV using Visual Studio Community Edition 2015 (i.e. VS14). Further, it is compiled for 64bit machines.


Use the cv2.pyd for Python 2.7.x and cv2.cp35-win_amd64.pyd for Python 3.5.x.

Here’s the file list:

  • cv2.cp35-win_amd64.pyd
  • cv2.pyd
  • opencv_calib3d310.dll
  • opencv_core310.dll
  • opencv_features2d310.dll
  • opencv_ffmpeg310_64.dll
  • opencv_flann310.dll
  • opencv_highgui310.dll
  • opencv_imgcodecs310.dll
  • opencv_imgproc310.dll
  • opencv_ml310.dll
  • opencv_objdetect310.dll
  • opencv_photo310.dll
  • opencv_shape310.dll
  • opencv_stitching310.dll
  • opencv_superres310.dll
  • opencv_video310.dll
  • opencv_videoio310.dll
  • opencv_videostab310.dll

Again, cv2.pyd or the cv2.cp35-win_amd64.pyd for Python 2.7.x or Python 3.5.x, respectively, and all of the dll files except opencv_ffmpeg310_64.dll go to INSTALL_FOLDER/Lib/site-packages, the ffmpeg dll directly to the INSTALL_FOLDER.

Please note, that you properly need the XIMEA XiAPI for proper function! I needed to download the XiAPI Beta Package (thanks to the XIMEA support) even for building OpenCV 3.1. If you’d like to build it yourself with XIMEA support, please note that you have to change some files.

And here is the full building information:

General configuration for OpenCV 3.1.0 =====================================
  Version control:               unknown

    Host:                        Windows 6.1 AMD64
    CMake:                       3.3.0
    CMake generator:             Visual Studio 14 2015 Win64
    CMake build tool:            C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe
    MSVC:                        1900

    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe  (ver 19.0.23506.0)
    C++ flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /wd4324 /wd4275 /wd4589 /MP4  /MD /O2 /Ob2 /D NDEBUG  /Zi
    C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /wd4324 /wd4275 /wd4589 /MP4  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
    C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
    C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi    /MP4  /MD /O2 /Ob2 /D NDEBUG  /Zi
    C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi    /MP4  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
    Linker flags (Release):      /machine:x64  /INCREMENTAL:NO  /debug
    Linker flags (Debug):        /machine:x64  /debug /INCREMENTAL 
    Precompiled headers:         YES
    Extra dependencies:          comctl32 gdi32 ole32 setupapi ws2_32 vfw32 xiapi64
    3rdparty dependencies:       zlib libjpeg libwebp libpng libtiff libjasper IlmImf

  OpenCV modules:
    To be built:                 core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab python2 python3
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java viz

  Windows RT support:            NO

    QT:                          NO
    Win32 UI:                    YES
    OpenGL support:              NO
    VTK support:                 NO

  Media I/O: 
    ZLib:                        build (ver 1.2.8)
    JPEG:                        build (ver 90)
    WEBP:                        build (ver 0.3.1)
    PNG:                         build (ver 1.6.19)
    TIFF:                        build (ver 42 - 4.0.2)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)
    GDAL:                        NO

  Video I/O:
    Video for Windows:           YES
    DC1394 1.x:                  NO
    DC1394 2.x:                  NO
    FFMPEG:                      YES (prebuilt binaries)
      codec:                     YES (ver 56.41.100)
      format:                    YES (ver 56.36.101)
      util:                      YES (ver 54.27.100)
      swscale:                   YES (ver 3.1.101)
      resample:                  NO
      gentoo-style:              YES
    GStreamer:                   NO
    OpenNI:                      NO
    OpenNI PrimeSensor Modules:  NO
    OpenNI2:                     NO
    PvAPI:                       NO
    GigEVisionSDK:               NO
    DirectShow:                  YES
    Media Foundation:            NO
    XIMEA:                       YES
    Intel PerC:                  NO

  Parallel framework:            Concurrency

  Other third-party libraries:
    Use IPP:                     9.0.1 [9.0.1]
         at:                     C:/Users/anki/opencv31/opencv/sources/3rdparty/ippicv/unpack/ippicv_win
    Use IPP Async:               NO
    Use Eigen:                   NO
    Use Cuda:                    NO
    Use OpenCL:                  YES
    Use custom HAL:              NO

    Version:                     dynamic
    Include path:                C:/Users/anki/opencv31/opencv/sources/3rdparty/include/opencl/1.2
    Use AMDFFT:                  NO
    Use AMDBLAS:                 NO

  Python 2:
    Interpreter:                 C:/Python27/python.exe (ver 2.7.11)
    Libraries:                   C:/Python27/libs/python27.lib (ver 2.7.11)
    numpy:                       C:/Python27/lib/site-packages/numpy/core/include (ver 1.10.4)
    packages path:               C:/Python27/Lib/site-packages

  Python 3:
    Interpreter:                 C:/Users/anki/Anaconda3/python.exe (ver 3.5.1)
    Libraries:                   C:/Users/anki/Anaconda3/libs/python35.lib (ver 3.5.1)
    numpy:                       C:/Users/anki/Anaconda3/lib/site-packages/numpy/core/include (ver 1.10.4)
    packages path:               C:/Users/anki/Anaconda3/Lib/site-packages

  Python (for build):            C:/Python27/python.exe

    ant:                         NO
    JNI:                         C:/Program Files/Java/jdk1.8.0_25/include C:/Program Files/Java/jdk1.8.0_25/include/win32 C:/Program Files/Java/jdk1.8.0_25/include
    Java wrappers:               NO
    Java tests:                  NO

    mex:                         C:/MATLAB/R2014a/bin/mex.bat
    Compiler/generator:          Not working (bindings will not be generated)

    Doxygen:                     NO
    PlantUML:                    NO

  Tests and samples:
    Tests:                       YES
    Performance tests:           YES
    C/C++ Examples:              NO

  Install path:                  C:/Users/anki/opencv31/for_Py35/install

  cvconfig.h is in:              C:/Users/anki/opencv31/for_Py35