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

Function convert_data

tests/helpers.py:62–63  ·  view source on GitHub ↗
(data: dict[str, list[Any]])

Source from the content-addressed store, hash-verified

60 """
61
62 def convert_data(data: dict[str, list[Any]]):
63 return {k: np.array(v) for k, v in data.items()}
64
65 return Detections(
66 xyxy=np.array(xyxy, dtype=np.float32),

Callers 2

_create_detectionsFunction · 0.85
_create_key_pointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected