LeapImageWithBBox
code_loader.contract.visualizer_classes.LeapImageWithBBox
import numpy.typing as npt
from code_loader.contract.enums import LeapDataType
@dataclass
class BoundingBox:
x: float
y: float
width: float
height: float
confidence: float
label: str
rotation: float = 0.0
metadata: Optional[Dict[str, Union[str, int, float]]] = None
@dataclass
class LeapImageWithBBox:
data: Union[npt.NDArray[np.float32], npt.NDArray[np.uint8]]
bounding_boxes: List[BoundingBox]
type: LeapDataType = LeapDataType.ImageWithBBoxArgs
Examples
Basic Usage
Last updated
Was this helpful?

