Concrete implementation for Ximea camera
Xiseq file parser (pymanip.video.ximea.xiseq)
Ximea Camera module (pymanip.video.ximea.camera)
This module implements the pymanip.video.ximea.Ximea_Camera using the
Python module provided by Ximea.
- class pymanip.video.ximea.camera.Ximea_Camera(serial_number=None, pixelFormat=None)[source]
Bases:
CameraConcrete
pymanip.video.Cameraclass for Ximea camera.- async acquisition_async(num=inf, timeout=None, raw=False, initialising_cams=None, raise_on_timeout=True, wait_before_stopping=None)[source]
Concrete implementation of
pymanip.video.Camera.acquisition_async()for the Ximea camera.timeout in milliseconds.
- Parameters
raw (bool (optional)) – if True, returns the XI_IMG object instead of a numpy array.
wait_before_stopping (async function (optional)) – async function to be awaited before stopping the acquisition_async
- async get_image(loop, image, timeout=5000)[source]
Asynchronous version of xiapi.Camera.get_image method This function awaits for next image to be available in transport buffer. Color images are in BGR order (similar to OpenCV default). Attention: matplotlib expects RGB order.
- Parameters
image (
xiapi.Image) – Image instance to copy image totimeout (int) – timeout in milliseconds
- property name
Camera name
- set_auto_white_balance(toggle)[source]
Enable/Disable auto white balance
- Parameters
toggle (bool) – True if auto white balance
- set_exposure_time(seconds)[source]
This method sets the exposure time for the camera.
- Parameters
seconds (float) – exposure in seconds.
- set_limit_bandwidth(limit)[source]
Enable limit bandwidth (useful if there are several cameras acquiring simultaneously).
- set_roi(roiX0=0, roiY0=0, roiX1=0, roiY1=0)[source]
This method sets the positions of the upper left corner (X0,Y0) and lower right (X1,Y1) corner of the ROI (region of interest) in pixels.