pyrolab.drivers.cameras.uc480.UC480#
- class UC480[source]#
Bases:
ThorCamBaseThe Thorlabs UC480 camera 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.
pixelclockintSets the clockspeed of the camera, usually in the range of 24.
exposureintSets the exposure of the camera, the time the shutter is open in milliseconds (90 ms is a good default).
framerateintThe framerate of the camera (fps).
Methods
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.
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).
set_color_mode([mode])Sets the color mode of the image.
Starts capture from the camera.
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