Image
class optris_sdk.camera.Image
A non-thermal image: raw counts, display pixels or energy.
The thermal path has Frame, which knows about temperature.
The other three outputs are untyped buffers with a pixel format, so
they share one class -- which is what the ABI does too, with a
single optris_sdk_image behind all three callbacks.
Borrowed, exactly as a callback Frame is: the buffer
belongs to the SDK and is reused once the handler returns. Copy
with to_bytes to keep it.
Only the BGRA callback actually fires today. A raw or an energy handler is accepted and then never called, which looks like a mistake at the calling end and is not one.
sequence and timestamp_us say which capture the image was
drawn from, so a picture can be paired with the thermal frame of
the same moment -- the two arrive by independent paths, so pairing
on "the newest frame I have" is one frame late while a stream runs
and can stay wrong after a paused replay is scrubbed. Both are
None when the SDK could not say, which is a replay of a
picture-only file.
Image — properties
format_name
Image — methods
to_bytes()
A copy of the pixels, which outlives the callback.