File size: 295 Bytes
6b41115 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from dataclasses import dataclass
from typing import Protocol
import numpy as np
@dataclass
class Track:
track_id: int
box: np.ndarray
label: int
score: float
class Tracker(Protocol):
def update(self, detections, frame=None) -> list[Track]: ...
def reset(self): ...
|