OptrisOptrisDocumentation

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

MotionZone

public readonly record struct MotionZone : IEquatable<MotionZone>

An area watched for movement, by frame differencing within a temperature band.

A zone publishes what it sees as signals, so an alarm on movement is an ordinary AlarmRule, with delay frames, latching, inhibit sources and actions like any other. Use SignalId.Motion(…) to name one.

The band is in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit), and Sensitivity is a difference in degrees of it. The Sensitivity default of 0.5 is a compile-time number, 0.5 K in Celsius; in Fahrenheit it is read as 0.5 F, so a Fahrenheit program that wants the same threshold passes 0.9.

MotionZone: constructors

public MotionZone(float MinimumTemperature, float MaximumTemperature, float Sensitivity = 0.5, uint MinimumArea = 10, bool Visualize = false)

An area watched for movement, by frame differencing within a temperature band.

  • MinimumTemperature: Only pixels at or above this take part, in the SDK's temperature unit.
  • MaximumTemperature: Only pixels at or below this take part. A zone watching for people uses roughly 30 to 40 C (86 to 104 F).
  • Sensitivity: How much a pixel must change between consecutive frames to count as moving: an absolute difference in degrees of the SDK's temperature unit (kelvin-sized in Celsius, Fahrenheit-sized in Fahrenheit), not a 0 to 1 knob, and higher means less sensitive.
  • MinimumArea: The smallest blob, in pixels, that counts. Raising it is how sensor noise is rejected.
  • Visualize: Draw the zone into the colorized picture.

A zone publishes what it sees as signals, so an alarm on movement is an ordinary AlarmRule, with delay frames, latching, inhibit sources and actions like any other. Use SignalId.Motion(…) to name one.

The band is in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit), and Sensitivity is a difference in degrees of it. The Sensitivity default of 0.5 is a compile-time number, 0.5 K in Celsius; in Fahrenheit it is read as 0.5 F, so a Fahrenheit program that wants the same threshold passes 0.9.

MotionZone: properties

public float MaximumTemperature { get; init; }

Only pixels at or below this take part. A zone watching for people uses roughly 30 to 40 C (86 to 104 F).

public uint MinimumArea { get; init; }

The smallest blob, in pixels, that counts. Raising it is how sensor noise is rejected.

public float MinimumTemperature { get; init; }

Only pixels at or above this take part, in the SDK's temperature unit.

public float Sensitivity { get; init; }

How much a pixel must change between consecutive frames to count as moving: an absolute difference in degrees of the SDK's temperature unit (kelvin-sized in Celsius, Fahrenheit-sized in Fahrenheit), not a 0 to 1 knob, and higher means less sensitive.

public bool Visualize { get; init; }

Draw the zone into the colorized picture.