comet_ml.Box ¶
Box(
box: Tuple[float, float, float, float],
label: str,
score: Optional[float] = None,
id: Optional[str] = None,
metadata: Optional[Dict[str, Any]] = None,
)
A data structure containing an annotation for a list of bounding boxes.
Create a bounding box annotation.
Parameters:
box
(tuple of int
) –a tuple of (x, y, width, height).
label
(str
) –A name; could be class name (like "dog") or specific item.
score
(float
, default:None
) –A value between 0 and 1.
id
(str
, default:None
) –A user-given ID of boxed item(s).
metadata
(dict
, default:None
) –Additional metadata to be associated with these boxed items.
Dec. 31, 2024