BoundingBoxCoordinates Objects
heightfloat - The height of the bounding box.widthfloat - The width of the bounding box.top_left_xfloat - The x-coordinate of the top-left corner.top_left_yfloat - The y-coordinate of the top-left corner.
from_dict
ddict - A dictionary containing bounding box information.
BoundingBoxCoordinates- An instance of BoundingBoxCoordinates.
to_dict
dict- A dictionary representation of the bounding box coordinates.
RotatableBoundingBoxCoordinates Objects
heightfloat - The height of the bounding box.widthfloat - The width of the bounding box.top_left_xfloat - The x-coordinate of the top-left corner.top_left_yfloat - The y-coordinate of the top-left corner.thetafloat - The angle of rotation originating at the center of the box.
theta
angle of rotation originating at center of boxfrom_dict
ddict - A dictionary containing rotatable bounding box information.
RotatableBoundingBoxCoordinates- An instance of RotatableBoundingBoxCoordinates.
to_dict
dict- A dictionary representation of the rotatable bounding box coordinates.
CuboidCoordinates Objects
positiontuple[float, float, float] - The (x, y, z) coordinates of the center of the cuboid in the 3D space.orientationtuple[float, float, float] - The (alpha, beta, gamma) Euler angles of the cuboid, in radians.sizetuple[float, float, float] - The size of the cuboid along its (x, y, z) axes.
Cuboid2DPerspectiveCoordinates Objects
frontList[PointCoordinate] - The vertices of the front face as a list of PointCoordinate objects.vanishing_pointPointCoordinate - The point where parallel lines appear to converge.scale_ratiofloat - The size of the back face relative to the front face (0.0 to N).- 2.0: Back face is twice the size.
- 1.0: No depth (back matches front).
- 0.5: Back face is half the size.
- 0.0: Back face recedes infinitely to the vanishing point.
cuboid = Cuboid2DPerspectiveCoordinates( … front=[PointCoordinate(x=0, y=0), PointCoordinate(x=0.1, y=0), … PointCoordinate(x=0.1, y=0.1), PointCoordinate(x=0, y=0.1)], … vanishing_point=PointCoordinate(x=0.4, y=0.3), … scale_ratio=0.75 … )
to_dict
dict- A dictionary representation of the cuboid 2D coordinates.
Cuboid2DIsometricCoordinates Objects
frontList[PointCoordinate] - The vertices of the front face as a list of PointCoordinate objects.offsetPointCoordinate - The translation vector to shift the back face.
cuboid = Cuboid2DIsometricCoordinates( … front=[PointCoordinate(x=0, y=0), PointCoordinate(x=0.1, y=0), … PointCoordinate(x=0.1, y=0.1), PointCoordinate(x=0, y=0.1)], … offset=PointCoordinate(x=0.05, y=-0.05) … )
to_dict
dict- A dictionary representation of the cuboid 2D coordinates.
Cuboid2DCoordinates
Union type for 2D cuboid coordinates - either perspective or isometric projection.cuboid_2d_coordinates_from_dict
ddict - A dictionary containing cuboid_2d coordinates information.
Cuboid2DCoordinates- Either Cuboid2DPerspectiveCoordinates or Cuboid2DIsometricCoordinates.
PointCoordinate Objects
xfloat - The x-coordinate of the point.yfloat - The y-coordinate of the point.
from_dict
ddict - A dictionary containing point coordinate information.
PointCoordinate- An instance of PointCoordinate.
to_dict
dict- A dictionary representation of the point coordinate.
PointCoordinate3D Objects
xfloat - The x-coordinate of the point.yfloat - The y-coordinate of the point.zfloat - The z-coordinate of the point.
from_dict
ddict - A dictionary containing point coordinate information.
PointCoordinate3D- An instance of PointCoordinate3D.
to_dict
dict- A dictionary representation of the point coordinate.
PolygonCoordinates Objects
__init__
valuesList[PointCoordinate] - A list of PointCoordinate objects defining the polygon.polygonsList[List[List[PointCoordinate]]] - A list of polygons, where each polygon is a list of contours, where each contour is a list of points.
from_dict
ddict - Dictionary containing polygon coordinates information.
PolygonCoordinates- A PolygonCoordinates instance.
to_dict
dict- A dictionary representation of the polygon coordinates.
PolylineCoordinates Objects
valuesUnion[List[PointCoordinate], List[PointCoordinate3D]] - A list of (3D) PointCoordinate objects defining the polyline.
from_dict
ddict - A dictionary containing polyline coordinates information.
PolylineCoordinates- An instance of PolylineCoordinates.
to_dict
dict- A dictionary representation of the polyline coordinates.
Visibility Objects
VISIBLE- The item is visible within the frame.INVISIBLE- The item is outside the frame and thus invisible.OCCLUDED- The item is within the frame but occluded by something else.SELF_OCCLUDED- The item is occluded by itself.
SkeletonCoordinate Objects
xfloat - The x-coordinate of the skeleton point.yfloat - The y-coordinate of the skeleton point.namestr - The name of the skeleton point.colorOptional[str] - The color associated with the skeleton point.feature_hashOptional[str] - A unique hash for the feature.valueOptional[str] - An optional value associated with the skeleton point.visibilityOptional[Visibility] - The visibility state of the skeleton point.
SkeletonCoordinates Objects
valuesList[SkeletonCoordinate] - A list of SkeletonCoordinate objects.namestr - The name of the skeleton structure.
to_dict
by_aliasbool - Whether to use alias for the field names.exclude_nonebool - Whether to exclude fields with None values.
AudioCoordinates Objects
rangeRanges - Ranges in milliseconds for audio files
TextCoordinates Objects
rangeRanges - Ranges of chars for simple text files
HtmlCoordinates Objects
rangeList[HtmlRange] - A list of HtmlRange objects

