track
sleap_nn.tracking.mot.track
¶
Track state for the MOT trackers.
Classes:
| Name | Description |
|---|---|
MOTTrack |
One track of a MOT tracker. |
TrackState |
Lifecycle state of a :class: |
MOTTrack
¶
One track of a MOT tracker.
Attributes:
| Name | Type | Description |
|---|---|---|
tid |
int
|
Internal id, unique within one tracker instance. |
state |
TrackState
|
Lifecycle state. |
mean |
ndarray
|
Kalman state mean. |
cov |
ndarray
|
Kalman state covariance. |
hits |
int
|
Total matches ( |
hit_streak |
int
|
Consecutive steps with a match. |
age |
int
|
Steps since spawn. |
time_since_update |
int
|
Steps since the last match. |
start_frame |
int
|
Frame index of the first detection. |
last_frame |
int
|
Frame index of the latest matched detection. |
step |
int
|
The tracker's step counter at the latest match. |
last_box |
ndarray
|
Latest observed padded |
last_raw_box |
ndarray
|
Latest observed unpadded extent. |
last_keypoints |
Optional[ndarray]
|
Latest observed keypoints (pose carrier) or |
kf_center_at_update |
ndarray
|
Kalman posterior center right after the latest
update; the predicted pose is |
last_score |
float
|
Latest matched detection score. |
observations |
Dict[int, ndarray]
|
OC-SORT observation history |
last_observation |
Optional[ndarray]
|
Latest observed |
velocity |
Optional[ndarray]
|
OC-SORT unit velocity direction |
frozen |
Optional[Tuple[ndarray, ndarray, int]]
|
OC-SORT state saved at the first miss |
appearance |
Optional[AppearanceMemory]
|
Appearance memory (appearance-using trackers) or |
members |
List[Tuple[int, Any, float]]
|
|
public_id |
Optional[int]
|
Public id ( |
Source code in sleap_nn/tracking/mot/track.py
is_live
property
¶
Whether the track can still be matched (not removed).
TrackState
¶
Bases: IntEnum
Lifecycle state of a :class:MOTTrack.
TENTATIVE tracks are not yet confirmed (fewer than min_hits
matches); CONFIRMED tracks were matched at the latest step; LOST
tracks are confirmed but currently unmatched (kept for re-association for
track_buffer steps); REMOVED tracks are finished.