Table of Contents

Class LineZoneSettings

Namespace
VisioForge.Core.Types.X.AI
Assembly
VisioForge.Core.dll

Settings for a directed line (tripwire) zone.

public class LineZoneSettings

Inheritance

Inherited Members

Remarks

Coordinates are in source-frame pixels. The directed line is VisioForge.Core.Types.X.AI.LineZoneSettings.Start -> VisioForge.Core.Types.X.AI.LineZoneSettings.End. Signed side is (End - Start) x (Point - Start). Stable negative-to-positive movement is VisioForge.Core.Types.X.AI.LineCrossingDirection.In. Stable positive-to-negative movement is VisioForge.Core.Types.X.AI.LineCrossingDirection.Out. Crossing the infinite extension outside the finite segment is not a crossing.

Properties

Anchor

Gets or sets which point of the detection bounding box is used as the reference anchor for crossing evaluation. Defaults to VisioForge.Core.Types.X.AI.DetectionAnchor.BottomCenter.

public DetectionAnchor Anchor { get; set; }

Property Value

DetectionAnchor

Color

Gets or sets the color used to draw this line and its counters. Defaults to SkiaSharp.SKColors.Yellow.

public SKColor Color { get; set; }

Property Value

SKColor

DeadbandPixels

Gets or sets the deadband distance in pixels. Anchor movement within this perpendicular distance from the line does not change the stable side and does not produce crossings. Defaults to 2.

public float DeadbandPixels { get; set; }

Property Value

float

End

Gets or sets the end point of the directed line, in source-frame pixels.

public SKPoint End { get; set; }

Property Value

SKPoint

Id

Gets or sets the unique identifier for this line zone. Required.

public string Id { get; set; }

Property Value

string

Start

Gets or sets the start point of the directed line, in source-frame pixels.

public SKPoint Start { get; set; }

Property Value

SKPoint

UseNormalizedCoordinates

Gets or sets a value indicating whether VisioForge.Core.Types.X.AI.LineZoneSettings.Start and VisioForge.Core.Types.X.AI.LineZoneSettings.End are expressed in normalized 0..1 coordinates (fraction of frame width/height). When true, coordinates are multiplied by the frame dimensions at runtime. Defaults to false (source-frame pixels).

public bool UseNormalizedCoordinates { get; set; }

Property Value

bool

Methods

Validate()

Validates the settings and throws ArgumentException if any value is invalid.

public void Validate()