pyrolab.drivers.cameras.thorcam.ThorCamBase

Contents

pyrolab.drivers.cameras.thorcam.ThorCamBase#

class ThorCamBase[source]#

Bases: Camera

The Thorlabs camera base driver.

Attributes:
HEADERSIZEint

The size in bytes of the header in each serialized message (read only).

brightnessint

Integer (range 1-10) defining the brightness, where 5 leaves the brightness unchanged.

colorbool

Sets 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()

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.

detect_devices()

Returns a list of connection parameters for available devices.

end_stream()

Ends a camera stream.

get_frame()

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.

pyrolab_version()

Return the version of PyroLab running the device.

set_behavior([instance_mode, instance_creator])

Sets the Pyro5 behavior for the class (modified in place).

start_capture()

Signals the hardware to start capturing and sets up the streaming thread.

start_stream()

Starts a camera stream.

start_streaming_thread()

Starts the streaming thread for nonlocal connections.

stop_capture()

Stops the capture from the camera.

stop_streaming_thread()

Closes the socket connection and signals the streaming thread to shutdown.

await_stream