Class PolygonZone
- Namespace
- VisioForge.Core.AI.Analytics.Zones
- Assembly
- VisioForge.Core.AI.dll
Runtime polygon zone that evaluates occupancy counting.
public sealed class PolygonZoneInheritance
Inherited Members
Remarks
Retained lost tracks stay inside until reobserved outside or expired. This makes occupancy robust to short detector dropouts. This class is not thread-safe. Call VisioForge.Core.AI.Analytics.Zones.PolygonZone.Update(VisioForge.Core.Types.VideoProcessing.ByteTrackerUpdate) serially.
Constructors
PolygonZone(PolygonZoneSettings)
Initializes a new instance of the VisioForge.Core.AI.Analytics.Zones.PolygonZone class.
public PolygonZone(PolygonZoneSettings settings)Parameters
settingsPolygonZoneSettings-
The polygon zone settings. Must not be null and must be valid.
Properties
Settings
Gets the polygon zone settings.
public PolygonZoneSettings Settings { get; }Property Value
- PolygonZoneSettings
Methods
Reset()
Resets all zone membership state.
public void Reset()Update(ByteTrackerUpdate)
Evaluates zone occupancy for the current tracker update.
public PolygonZoneSnapshot Update(ByteTrackerUpdate update)Parameters
updateByteTrackerUpdate-
The tracker update result.
Returns
- PolygonZoneSnapshot
-
The zone occupancy snapshot for this update.