OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

LiveFrameRate

public sealed class LiveFrameRate

Real frames per second over the time the scene was being measured: the frame rate to show a user.

MeasuredFrameRate.MeasuredHz counts real frames over wall time, so it dips towards zero through every shutter cycle and falls to zero while a replay is paused, and a camera tile showing it reads 0 fps for a healthy camera. This is the same count over live time: the intervals that ended in a repeated frame (the shutter flag closed, in motion, or settling after it reopens) and the time a replay is paused are left out, numerator and divisor alike. Hz = RealFrames / (Window in seconds).

A healthy shutter cycle reads the camera's rate throughout. A paused replay keeps the rate it had, and reads the file's rate again straight after it resumes. A camera that stops delivering still reads 0, closure or not; a dropped frame still lowers it; and with nothing held or paused within the window it equals MeasuredFrameRate.MeasuredHz.

LiveFrameRate: properties

public float Hz { get; }

Real frames per second over LiveFrameRate.Window of live time, in Hz.

public bool IsValid { get; }

Whether there is live time to divide by.

false until two frames have been delivered and a quarter of a second of live time has passed since the first; every other property is then zero. Can be false while MeasuredFrameRate.IsValid is true, for a stream that has never had live time: one that started with the flag closed, or a replay paused straight after it started. Once true it stays so through any closure or pause, however long.

public uint RealFrames { get; }

Real frames counted in LiveFrameRate.Window: the numerator of LiveFrameRate.Hz.

public TimeSpan Window { get; }

The live time LiveFrameRate.Hz was counted over.

The same length as MeasuredFrameRate.Window once the stream has been live that long; shorter before then.