OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Python API referencev12.0

SessionSource

class optris_sdk.session.SessionSource

One camera, declared before the session opens.

Not cosmetic: measured with a 7-95 ms queue in front of a 10 Hz
camera, the recorded interval is wrong by up to 82,000 us under
hand-over and by 3,000 us under this. **A source whose frames
carry no stamp falls back silently**, and
[`SessionSourceStats.frames_from_own_stamp`](/documentation/sdks/otc-sdk/v12.0/python/sessionsourcestats) is how you
tell that apart from the feature working.
  • Parameter width — the frames' width, in pixels. Required.
  • Parameter height — the frames' height. Required.
  • Parameter frame_rate — what the camera says about itself. Nominal: what it actually delivers is measured, and on a camera that drifts the two differ -- which is what sessions exist for.
  • Parameter kind — SESSION_SOURCE_THERMAL (the default) or SESSION_SOURCE_COLOR. This decides which write call the source takes, and the wrong one is refused rather than converted.
  • Parameter timestamp_source — SESSION_STAMP_HANDOVER (the default) records each frame at the instant it is handed over, which is right when it comes straight from an SDK callback. SESSION_STAMP_FRAME uses the frame's own stamp mapped onto the session clock, falling back to hand-over for a frame that carries none.
  • Parameter name — what to call this camera. Optional.
  • Parameter model — the camera model. Optional.
  • Parameter serial — the camera's serial. Optional.
  • Parameter visual_jpeg_quality — quality, 2 (best) to 31 (worst), for encoding a visual source's track as MJPEG rather than losslessly. None or 0 keeps it lossless. A higher number makes a smaller file and a coarser picture. The file says it is lossy, in its metadata and in an OTC_LOSSY container tag. Ignored on a thermal source, with a warning: MJPEG is eight bits a sample and a 16-bit temperature cannot go through it and still be a temperature.

SessionSource — methods

__repr__()