Class Track<T>
- Namespace
- AiDotNet.ComputerVision.Tracking
- Assembly
- AiDotNet.dll
Represents a tracked object across frames.
public class Track<T>
Type Parameters
TThe 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
trackIdintboxBoundingBox<T>classIdintconfidenceT
Properties
Age
Total number of frames this track has been active.
public int Age { get; set; }
Property Value
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
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
State
Track state (tentative, confirmed, deleted).
public TrackState State { get; set; }
Property Value
TimeSinceUpdate
Number of consecutive frames without detection.
public int TimeSinceUpdate { get; set; }
Property Value
TrackId
Unique track identifier.
public int TrackId { get; set; }
Property Value
VelocityX
Velocity in x direction (pixels/frame).
public double VelocityX { get; set; }
Property Value
VelocityY
Velocity in y direction (pixels/frame).
public double VelocityY { get; set; }