Bounding Box Model
TheBoundingBox model represents the bounding box and can be used to for highlights and annotations, as well as for VLM input as images.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
BoundingBox model represents the bounding box and can be used to for highlights and annotations, as well as for VLM input as images.
interface BoundingBox {
left: number;
top: number;
width: number;
height: number;
}
function convertToDocumentCoordinates(
bbox: BoundingBox,
segment: Segment
): BoundingBox {
return {
left: bbox.left + segment.bbox.left,
top: bbox.top + segment.bbox.top,
width: bbox.width,
height: bbox.height,
};
}