Table of Contents

Class ObjectsDetectedEventArgs

Namespace
VisioForge.Core.Types.Events
Assembly
VisioForge.Core.dll

Provides data for events that report objects detected in a video frame by an ONNX-based detector.

public class ObjectsDetectedEventArgs : EventArgs

Inheritance

Inherited Members

Remarks

Raised by the YOLO object detector block for each processed frame that contains at least one detection. The event is raised on the pipeline's frame-processing thread, so handlers must be thread-safe and marshal to the UI thread when needed.

Constructors

ObjectsDetectedEventArgs(OnnxDetection[], TimeSpan)

Initializes a new instance of the VisioForge.Core.Types.Events.ObjectsDetectedEventArgs class.

public ObjectsDetectedEventArgs(OnnxDetection[] objects, TimeSpan timestamp)

Parameters

objects OnnxDetection[]

The detected objects.

timestamp TimeSpan

The timestamp of the source frame.

Properties

Objects

Gets the detected objects for the current frame.

public OnnxDetection[] Objects { get; }

Property Value

OnnxDetection[]

Timestamp

Gets the timestamp of the video frame the detections belong to.

public TimeSpan Timestamp { get; }

Property Value

TimeSpan