Data¶
Everything moves through one layout, a float32 (N, 7) array of
[x1, y1, x2, y2, conf, cls, id]. Tracks wraps it, Track is one row of it,
and Preds is the id-less version used for secondary output.
Tracks
¶
A sliceable view over an (N, 7) box array.
names maps class ids to strings (list or dict, either works) and
img is the frame the boxes came from, so draw() needs no argument.
Source code in vizor/boxes.py
name
¶
copy
¶
draw
¶
Draw the boxes on img (defaults to the source frame) and return it.
Source code in vizor/boxes.py
Track
dataclass
¶
Preds
¶
iou
¶
Pairwise IoU between two sets of xyxy boxes, shape (len(a), len(b)).