Refiner
- class byotrack.api.refiner.Refiner
Bases:
ABCBase class for tracks refiners.
Improve a set of tracks
Each refiner can define a set of parameters (See ParametrizedObjectMixin)
- abstractmethod run(video: Sequence[np.ndarray] | np.ndarray, tracks: Collection[byotrack.Track]) Collection[byotrack.Track]
Run the refiner on a whole video.
- Parameters:
video (Sequence[np.ndarray] | np.ndarray) – Sequence of T frames (array). Each array is expected to have a shape ([D, ]H, W, C)
tracks (Collection[byotrack.Track]) – Tracks of particles
- Returns:
Refined tracks of particles
- Return type:
Collection[byotrack.Track]