Table of Contents

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 : EventArgs

Inheritance

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

objects OnnxDetection[]

The observed tracked objects.

lineCrossings LineCrossingResult[]

The line crossing events.

zones PolygonZoneSnapshot[]

The polygon zone snapshots.

timestamp TimeSpan

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

LineCrossingResult[]

Objects

Gets the observed tracked objects for the current processed inference frame. This array is never null.

public OnnxDetection[] Objects { get; }

Property Value

OnnxDetection[]

Timestamp

Gets the source video frame timestamp.

public TimeSpan Timestamp { get; }

Property Value

TimeSpan

Zones

Gets the polygon zone snapshots for this update. This array is never null.

public PolygonZoneSnapshot[] Zones { get; }

Property Value

PolygonZoneSnapshot[]