CameraConfig
class optris_sdk.config.CameraConfig
A camera's whole configuration, held as one opaque record.
What Camera.get_config reads back and
Camera.apply_config puts in place: the measurement
parameters, the temperature range, the palette and any custom
colour table, the output directory, the motion zones, the colour
windows, the canvas placement, the measuring regions and the alarm
rules.
This is the shape to save and restore configuration in. Doing it setting by setting cannot be complete -- a setting added in a later version is silently absent from the caller's save and restore, and nothing says so -- whereas a record grows with the SDK and a program that round-trips one never has to be revisited.
Opaque deliberately. A configuration carries regions and alarm
rules, and a record that could only carry the scalars would delete
a caller's regions every time it was applied. There is nothing to
read out of it here except serial; the individual settings
have their own properties on optris_sdk.Camera.
Owns a handle from the SDK. Use it as a context manager, or call
close; it is also released when the object is collected.
CameraConfig — properties
serial
The serial of the camera this was read from, or ''.
What require_matching_serial is compared against. Worth
showing a person before committing to an apply.
CameraConfig — methods
copy_canvas()
The canvas this record carries. You own it; close it.
The canvas is part of a saved configuration alongside the regions, deliberately: restoring the measuring areas of a turned, zoomed view without restoring the view would put every one of them in the wrong place.
A record written before the canvas existed loads an empty canvas -- a pass-through -- rather than failing, so reading this from an older file is safe and answers "nothing was placed".
close()
Release the record. Safe to call more than once.