SnapshotOptions
class optris_sdk.snapshot.SnapshotOptions
How to write the file, as opposed to what is in it.
Every field left at None keeps the SDK's own default, which is
read from the ABI rather than copied here -- a zeroed struct is not
a defaulted one, and compression_level 0 means "store".
- Parameter
compression_level— zlib level, 0-9, applied to the image data, the metadata text and the attachment payloads alike. - Parameter
tiff_int16— TIFF only. True writes uint16 on the same grid as the PNG instead of float32 Kelvin, for readers that cannot handle floating-point samples. - Parameter
scale— Kelvin per count.Nonepicks the finest rung that covers the camera's range maximum; otherwise it must be exactly 0.01, 0.025 or 0.05. A scale that cannot represent the frame's own minimum or maximum raisesoptris_sdk.errors.InvalidArgumentErrorrather than silently clipping a measurement. - Parameter
software_override— overrides theSoftwarestring written into the file. Only for output that has to be byte-reproducible across SDK versions. - Parameter
jpeg_quality—optris_sdk.SNAPSHOT_JPEGonly. 2 (best) to 31 (worst), as FFmpeg's mjpeg encoder scales it, so lower is better.Nonekeeps the SDK's default of 4, which sits deliberately near the top of the range: a thermal picture carries its information in the colour, and JPEG's quantisation reaches the chroma first. Ignored by every other format.