Class ReframeEventArgs
- Namespace
- VisioForge.Core.Types.Events
- Assembly
- VisioForge.Core.dll
Event arguments for the AutoReframeBlock.OnReframeUpdated event, carrying the crop window
applied to the source frame, the subject being followed (if any), and the source frame timestamp.
public sealed class ReframeEventArgs : EventArgsInheritance
Inherited Members
Constructors
ReframeEventArgs(Rect, bool, Rect, string, float, TimeSpan)
Initializes a new instance of the VisioForge.Core.Types.Events.ReframeEventArgs class.
public ReframeEventArgs(Rect cropRect, bool hasTarget, Rect targetBox, string trackedLabel, float confidence, TimeSpan timestamp)Parameters
cropRectRect-
The crop window in source-frame coordinates.
hasTargetbool-
Whether a subject was followed on this frame.
targetBoxRect-
The followed subject box, or null.
trackedLabelstring-
The followed subject label, or null.
confidencefloat-
The followed subject confidence, or 0.
timestampTimeSpan-
The source frame timestamp.
Properties
Confidence
Gets the detection confidence (0..1) of the followed subject, or 0 when no subject was followed.
public float Confidence { get; }Property Value
CropRect
Gets the crop window applied to the source frame, in source-frame pixel coordinates (before any pixel-aspect-ratio correction). Its display aspect ratio matches the configured output aspect ratio; for anamorphic (non-square-pixel) sources the pixel-space width/height ratio differs accordingly. Never null.
public Rect CropRect { get; }Property Value
HasTarget
Gets a value indicating whether a subject was being followed on this frame.
When false the crop is easing toward (or resting at) the frame center.
public bool HasTarget { get; }Property Value
TargetBox
Gets the bounding box of the followed subject in source-frame pixel coordinates,
or null when no subject was followed on this frame.
public Rect TargetBox { get; }Property Value
Timestamp
Gets the source video frame timestamp.
public TimeSpan Timestamp { get; }Property Value
TrackedLabel
Gets the class label of the followed subject, or null when no subject was followed.
public string TrackedLabel { get; }