sportslabkit.types.detections#

Overview#

Classes#

Detections

SoccerTrack detections class for inference results.

Classes#

class sportslabkit.types.detections.Detections(preds: list[dict] | list[list] | list[Detection], im: str | Path | Image.Image | np.ndarray, times: tuple[float, float, float] = (0, 0, 0), names: list[str] | None = None)[source]#

SoccerTrack detections class for inference results.

Overview

Methods#

show(**kwargs)

-

save_image(path, **kwargs)

-

save_boxes(path)

-

crop(save, save_dir, exist_ok)

-

to_df()

-

to_list()

-

merge(other)

-

Members

show(**kwargs) PIL.Image.Image[source]#
save_image(path: str | Path, **kwargs)[source]#
save_boxes(path: str | Path)[source]#
crop(save: bool = True, save_dir: str | Path = 'runs/detect/exp', exist_ok: bool = False) list[PIL.Image.Image][source]#
to_df()[source]#
to_list()[source]#
merge(other)[source]#