Table of Contents

Class Track<T>

Namespace
AiDotNet.ComputerVision.Tracking
Assembly
AiDotNet.dll

Represents a tracked object across frames.

public class Track<T>

Type Parameters

T

The numeric type used for calculations.

Inheritance
Track<T>
Inherited Members

Constructors

Track(int, BoundingBox<T>, int, T)

Creates a new track.

public Track(int trackId, BoundingBox<T> box, int classId, T confidence)

Parameters

trackId int
box BoundingBox<T>
classId int
confidence T

Properties

Age

Total number of frames this track has been active.

public int Age { get; set; }

Property Value

int

AppearanceFeature

Optional appearance feature embedding.

public Tensor<T>? AppearanceFeature { get; set; }

Property Value

Tensor<T>

Box

Current bounding box.

public BoundingBox<T> Box { get; set; }

Property Value

BoundingBox<T>

ClassId

Class ID of the tracked object.

public int ClassId { get; set; }

Property Value

int

Confidence

Current confidence score.

public T Confidence { get; set; }

Property Value

T

Hits

Number of frames with detection hits.

public int Hits { get; set; }

Property Value

int

State

Track state (tentative, confirmed, deleted).

public TrackState State { get; set; }

Property Value

TrackState

TimeSinceUpdate

Number of consecutive frames without detection.

public int TimeSinceUpdate { get; set; }

Property Value

int

TrackId

Unique track identifier.

public int TrackId { get; set; }

Property Value

int

VelocityX

Velocity in x direction (pixels/frame).

public double VelocityX { get; set; }

Property Value

double

VelocityY

Velocity in y direction (pixels/frame).

public double VelocityY { get; set; }

Property Value

double