Class ObjectAnalyticsEventArgs
- Namespace
- VisioForge.Core.Types.Events
- Assembly
- VisioForge.Core.dll
Event arguments for the ObjectAnalyticsBlock.OnAnalyticsUpdated event,
carrying the processed objects, line crossings, zone snapshots, and source frame timestamp.
public sealed class ObjectAnalyticsEventArgs : EventArgsInheritance
Inherited Members
Constructors
ObjectAnalyticsEventArgs(OnnxDetection[], LineCrossingResult[], PolygonZoneSnapshot[], TimeSpan)
Initializes a new instance of the VisioForge.Core.Types.Events.ObjectAnalyticsEventArgs class.
public ObjectAnalyticsEventArgs(OnnxDetection[] objects, LineCrossingResult[] lineCrossings, PolygonZoneSnapshot[] zones, TimeSpan timestamp)Parameters
objectsOnnxDetection[]-
The observed tracked objects.
lineCrossingsLineCrossingResult[]-
The line crossing events.
zonesPolygonZoneSnapshot[]-
The polygon zone snapshots.
timestampTimeSpan-
The source frame timestamp.
Properties
LineCrossings
Gets the line crossing events detected in this update. This array is never null.
public LineCrossingResult[] LineCrossings { get; }Property Value
Objects
Gets the observed tracked objects for the current processed inference frame. This array is never null.
public OnnxDetection[] Objects { get; }Property Value
Timestamp
Gets the source video frame timestamp.
public TimeSpan Timestamp { get; }Property Value
Zones
Gets the polygon zone snapshots for this update. This array is never null.
public PolygonZoneSnapshot[] Zones { get; }