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 : EventArgsInheritance
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
objectsOnnxDetection[]-
The detected objects.
timestampTimeSpan-
The timestamp of the source frame.
Properties
Objects
Gets the detected objects for the current frame.
public OnnxDetection[] Objects { get; }Property Value
Timestamp
Gets the timestamp of the video frame the detections belong to.
public TimeSpan Timestamp { get; }