csaxs_bec.devices.ids_cameras.base_integration.camera.Camera#

class Camera(camera_id: int, m_n_colormode: Literal[0, 1, 2, 3] = 1, bits_per_pixel: int = 24, connect: bool = True, force_monochrome: bool = False)[source]#

Bases: object

High level camera base class for IDS cameras.

Parameters:
  • camera_id (int) – The ID of the camera device.

  • m_n_colormode (Literal[0, 1, 2, 3]) – Color mode for the camera.

  • bits_per_pixel (Literal[8, 24]) – Number of bits per pixel for the camera.

Methods

get_image_data

Get the image data from the camera.

on_connect

Connect to the camera and initialize it.

on_disconnect

Disconnect from the camera and optionally wait a short time for driver cleanup.

set_auto_gain

Enable or disable auto gain.

set_auto_shutter

Enable or disable auto exposure.

set_camera_rate_limiting

set_roi

Set the region of interest (ROI) for the camera.

Attributes

exposure_time

Get the exposure time of the camera.

property exposure_time: float#

Get the exposure time of the camera.

get_image_data() ndarray | None[source]#

Get the image data from the camera.

on_connect()[source]#

Connect to the camera and initialize it.

on_disconnect(delay_after: float = 0.3)[source]#

Disconnect from the camera and optionally wait a short time for driver cleanup.

set_auto_gain(enable: bool)[source]#

Enable or disable auto gain.

set_auto_shutter(enable: bool)[source]#

Enable or disable auto exposure.

set_roi(x: int, y: int, width: int, height: int)[source]#

Set the region of interest (ROI) for the camera.