pylabrobot.revvity.celigo.CameraFrame#
- class pylabrobot.revvity.celigo.CameraFrame(data: bytes, width: int, height: int, bit_depth: int, exposure_ms: float, gain: float, captured_at: float)#
Bases:
objectOne raw monochrome camera frame and its acquisition metadata.
Attributes
Methods
__init__(data, width, height, bit_depth, ...)pixels()Return pixels as a standard-library array (native-endian for 16-bit frames).
save_pgm(path)Save the raw frame as a portable graymap image.
save_png(path[, maximum_size])Save the raw frame as a browser-compatible grayscale PNG image.
sharpness([sample_step])Variance of a Laplacian over the central image region.
Return
(minimum, maximum, mean)without requiring NumPy.to_numpy()Return a
height x widthNumPy view of the frame.to_png_bytes([maximum_size])Encode the frame as a PNG, optionally downsampling it to a bounding square.