Skip to content

Enums

rerun

class Box2DFormat

Bases: Enum

How to specify 2D boxes (axis-aligned bounding boxes).

XCYCW2H2 = 'XCYCW2H2' class-attribute instance-attribute

[x_center, y_center, width/2, height/2].

XCYCWH = 'XCYCWH' class-attribute instance-attribute

[x_center, y_center, width, height].

XYWH = 'XYWH' class-attribute instance-attribute

[x,y,w,h], with x,y = left,top.

XYXY = 'XYXY' class-attribute instance-attribute

[x0, y0, x1, y1], with x0,y0 = left,top and x1,y1 = right,bottom.

YXHW = 'YXHW' class-attribute instance-attribute

[y,x,h,w], with x,y = left,top.

YXYX = 'YXYX' class-attribute instance-attribute

[y0, x0, y1, x1], with x0,y0 = left,top and x1,y1 = right,bottom.

class ImageFormat

Bases: Enum

Image file format.

BMP = 'BMP' class-attribute instance-attribute

BMP format.

GIF = 'GIF' class-attribute instance-attribute

GIF format.

JPEG = 'JPEG' class-attribute instance-attribute

JPEG format.

PNG = 'PNG' class-attribute instance-attribute

PNG format.

TIFF = 'TIFF' class-attribute instance-attribute

TIFF format.

class MeshFormat

Bases: Enum

Mesh file format.

GLB = 'GLB' class-attribute instance-attribute

glTF binary format.

OBJ = 'OBJ' class-attribute instance-attribute

Wavefront .obj format.