Class PolygonZoneSnapshot
- Assembly
- VisioForge.Core.dll
An occupancy snapshot of a single polygon zone after a tracker update.
public sealed class PolygonZoneSnapshotInheritance
Inherited Members
Constructors
PolygonZoneSnapshot(string, int[], int[], int[], int[])
Initializes a new instance of the VisioForge.Core.Types.VideoProcessing.PolygonZoneSnapshot class.
public PolygonZoneSnapshot(string zoneId, int[] trackerIds, int[] enteredTrackerIds, int[] exitedTrackerIds, int[] expiredTrackerIds)Parameters
zoneIdstring-
The zone identifier.
trackerIdsint[]-
The IDs currently inside the zone.
enteredTrackerIdsint[]-
The IDs that entered in this update.
exitedTrackerIdsint[]-
The IDs that exited by movement in this update.
expiredTrackerIdsint[]-
The IDs that expired while inside in this update.
Properties
CurrentCount
Gets the current number of tracked objects inside the zone.
Always equals TrackerIds.Length.
public int CurrentCount { get; }Property Value
EnteredTrackerIds
Gets the tracker IDs that entered the zone in this update. This array is sorted in ascending order and is never null.
public int[] EnteredTrackerIds { get; }Property Value
- int[]
ExitedTrackerIds
Gets the tracker IDs that exited the zone by movement in this update. This array is sorted in ascending order and is never null.
public int[] ExitedTrackerIds { get; }Property Value
- int[]
ExpiredTrackerIds
Gets the tracker IDs that were removed while still inside the zone in this update. This array is sorted in ascending order and is never null.
public int[] ExpiredTrackerIds { get; }Property Value
- int[]
TrackerIds
Gets the tracker IDs currently inside the zone (including retained lost tracks). This array is sorted in ascending order and is never null.
public int[] TrackerIds { get; }Property Value
- int[]
ZoneId
Gets the identifier of the polygon zone.
public string ZoneId { get; }