Devices¶
Smart Control uses IDS camera for the capture and it modifies the constructor library pyueye.
Camera¶
-
class
src.devices.camera.ids_control.Camera(width=1600, height=1200, clock=256, fps=42.05, expo=19.98)¶ Class Camera based on pyueye
-
load_camera(width, height, clock, fps, expo)¶ Loads the camera with the given parameters.
- Arguments:
width (int): width of the resulting images height (int): height of the resulting images clock (int): Clock of the camera fps (float): Number of frame per second to return expo (float): Exposure of the camera
-
set_exposure(value)¶ Sets the exposure.
- Arguments:
value (float): New value for the exposure
- Returns:
float: Exposure value
-
set_exposure_auto(toggle)¶ Sets the exposure to automatic mode.
- Arguments:
toggle (int): 1 to automatic, 0 to manual
-
set_framerate(value)¶ Sets the framerate.
- Arguments:
value (float): Number of frame per second
- Returns:
float: Number of frame per second returned by the camera
-
set_pixelclock(value)¶ Sets the pixel clock of the camera.
- Arguments:
value (int): pixel clock value
-
take_photo()¶ Takes a photo.
- Returns:
numpy.ndarray: Image
-