OptrisOptrisDocumentation

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

SessionSourceInfo

class optris_sdk.session.SessionSourceInfo

One source of a session that is being replayed.

Everything here is known the moment the file is open, before anything is played: the open scans the file once, which is what fills in the counts, the spans and the gaps.

  • Attribute index — this source's position, from 0.
  • Attribute video_stream_index — which container track carries it, or None when it has no video track.
  • Attribute kind — SESSION_SOURCE_THERMAL or SESSION_SOURCE_COLOR. Check this before reading a temperature: a visual source has none.
  • Attribute width — frame width in pixels.
  • Attribute height — frame height.
  • Attribute frame_rate — the rate the file declares. What the source actually delivered is frame_count over the span from first_frame_s to last_frame_s.
  • Attribute frame_count — how many frames it holds.
  • Attribute first_frame_s — session time of its first frame. A source that joined late has one well past zero, and that is real rather than an artefact.
  • Attribute last_frame_s — session time of its last frame. A source that ended early has one well short of the session's duration.
  • Attribute max_gap_s — its largest hole. A hole does not say why; use SessionPlayer.outages for the spans somebody recorded a reason for.
  • Attribute name — what the session calls this camera, or ''.
  • Attribute model — its model, or ''.
  • Attribute serial — its serial, or ''.

SessionSourceInfo — properties

measured_frame_rate

Frames per second as actually delivered, or None.

frame_count over the span it occupies. None when the source holds fewer than two frames, because one frame spans no time and a rate from it would be an invention.

is_thermal

Whether a temperature can be read from this source at all.

SessionSourceInfo — methods

__repr__()