pyrolab.drivers.cameras.uc480.UC480

Contents

pyrolab.drivers.cameras.uc480.UC480#

class UC480[source]#

Bases: ThorCamBase

The Thorlabs UC480 camera 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.

pixelclockint

Sets the clockspeed of the camera, usually in the range of 24.

exposureint

Sets the exposure of the camera, the time the shutter is open in milliseconds (90 ms is a good default).

framerateint

The framerate of the camera (fps).

Methods

autoconnect()

Autoconnect to an instrument using internally stored parameters.

close()

Closes communication with the camera and frees memory.

connect(serialno[, local, bit_depth, ...])

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).

set_color_mode([mode])

Sets the color mode of the image.

start_capture()

Starts capture from the camera.

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