Table of Contents

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

Inheritance

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

cropRect Rect

The crop window in source-frame coordinates.

hasTarget bool

Whether a subject was followed on this frame.

targetBox Rect

The followed subject box, or null.

trackedLabel string

The followed subject label, or null.

confidence float

The followed subject confidence, or 0.

timestamp TimeSpan

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

float

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

Rect

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

bool

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

Rect

Timestamp

Gets the source video frame timestamp.

public TimeSpan Timestamp { get; }

Property Value

TimeSpan

TrackedLabel

Gets the class label of the followed subject, or null when no subject was followed.

public string TrackedLabel { get; }

Property Value

string