Overview
TheAnnotationBox type represents a single bounding box annotation on an image. Each annotation box has a unique identifier, a label, and position/dimension properties.
Type Definition
Properties
Unique identifier for the annotation box. Generated using
crypto.randomUUID().The label/class name assigned to this annotation (e.g., “cat”, “dog”, “car”).
The x-coordinate of the top-left corner of the bounding box in pixels.
The y-coordinate of the top-left corner of the bounding box in pixels.
The width of the bounding box in pixels.
The height of the bounding box in pixels.