pyrolab.drivers.cameras.thorcam.ThorCamBase#
- class ThorCamBase[source]#
Bases:
CameraThe Thorlabs camera base driver.
- Attributes:
HEADERSIZEintThe size in bytes of the header in each serialized message (read only).
brightnessintInteger (range 1-10) defining the brightness, where 5 leaves the brightness unchanged.
colorboolSets whether to transmit color (
True) or grayscale (False) images.roi_shape(int, int)The region of interest shape.
roi_pos(int, int)Sets the upper left corner of the region of interest in pixels.
Methods
Autoconnect to an instrument using internally stored parameters.
close()Closes communication with the camera and frees memory.
connect(*args, **kwargs)Opens the serial communication with the Thorlabs camera and sets defaults.
Returns a list of connection parameters for available devices.
Ends a camera stream.
Retrieves the last frame from the camera's memory buffer.
ping()Returns a bool (True) to indicate that the Daemon is alive and can be communicated with.
Return the version of PyroLab running the device.
set_behavior([instance_mode, instance_creator])Sets the Pyro5 behavior for the class (modified in place).
Signals the hardware to start capturing and sets up the streaming thread.
Starts a camera stream.
Starts the streaming thread for nonlocal connections.
Stops the capture from the camera.
Closes the socket connection and signals the streaming thread to shutdown.
await_stream