MCPcopy
hub / github.com/roboflow/supervision / get

Method get

src/supervision/annotators/utils.py:377–381  ·  view source on GitHub ↗
(self, tracker_id: int)

Source from the content-addressed store, hash-verified

375 self.current_frame_id += 1
376
377 def get(self, tracker_id: int) -> np.ndarray[Any, np.dtype[np.float32]]:
378 filtered: np.ndarray[Any, np.dtype[np.float32]] = (
379 self.xy[self.tracker_id == tracker_id].copy().astype(np.float32, copy=False)
380 )
381 return filtered
382
383
384def hex_to_rgba(hex_color: str) -> tuple[int, int, int, int]:

Callers 15

from_video_pathMethod · 0.80
writer_threadFunction · 0.80
process_videoFunction · 0.80
annotateMethod · 0.80
_extract_class_namesFunction · 0.80
load_coco_annotationsFunction · 0.80
_with_seg_maskFunction · 0.80
_detections_contentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected