XIMEA and OpenCV 3

The brandnew OpenCV master version 3 has a lot of advantages. First to mention is the accessibility of the XiAPI parameters. Because XIMEA is still not supported by default in OpenCV, I provide you here the necessary files as a zip file.

I still love my Python 2.7.x environment, thus I aimed to compile the OpenCV package for Python 2.7.x. Thus, I used Visual Studio C++ Express 2010, the Windows SDK 7.1 and CMake, similar to my previous post. I just built plain OpenCV with the WITH_XIMEA option to enable XIMEA camera support. Please be aware that the following package is for Python 2.7 64 bit!

Download here my package: cv2_3.0.0_for_Python27

All files in the container except of opencv_ffmpeg300_64.dll go to the following directory: C:\Python27\Lib\site-packages ; the latter goes to the main C:\Python27 directory. After copying the files you may check the version using the following code snippet in Python:

import cv2
print cv2.getBuildInformation()

Then, somewhat like this should appear:

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

  Platform:
    Host:                        Windows 6.1 AMD64
    CMake:                       3.3.0
    CMake generator:             Visual Studio 10 2010 Win64
    CMake build tool:            C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe
    MSVC:                        1600

...

    XIMEA:                       YES
...

And here are the special XIMEA XiAPI functions available through OpenCV v3:

for param in dir(cv2):
    if "XI" in param:
        print param
        
# CAP_PROP_XI_AEAG
# CAP_PROP_XI_AEAG_LEVEL
# CAP_PROP_XI_AE_MAX_LIMIT
# CAP_PROP_XI_AG_MAX_LIMIT
# CAP_PROP_XI_AUTO_WB
# CAP_PROP_XI_DATA_FORMAT
# CAP_PROP_XI_DOWNSAMPLING
# CAP_PROP_XI_EXP_PRIORITY
# CAP_PROP_XI_GPI_LEVEL
# CAP_PROP_XI_GPI_MODE
# CAP_PROP_XI_GPI_SELECTOR
# CAP_PROP_XI_GPO_MODE
# CAP_PROP_XI_GPO_SELECTOR
# CAP_PROP_XI_LED_MODE
# CAP_PROP_XI_LED_SELECTOR
# CAP_PROP_XI_MANUAL_WB
# CAP_PROP_XI_OFFSET_X
# CAP_PROP_XI_OFFSET_Y
# CAP_PROP_XI_TIMEOUT
# CAP_PROP_XI_TRG_SOFTWARE
# CAP_PROP_XI_TRG_SOURCE
# CAP_XIAPI

 

 

XIMEA and OpenCV 3
Scroll to top