Shortcuts

BoundingBoxFormat

class torchvision.tv_tensors.BoundingBoxFormat(value)[source]

Coordinate format of a bounding box.

Available formats are:

  • XYXY

  • XYWH

  • CXCYWH

  • XYWHR: rotated boxes represented via corner, width and height, x1, y1 being top left, w, h being width and height. r is rotation angle in degrees.

  • CXCYWHR: rotated boxes represented via centre, width and height, cx, cy being center of box, w, h being width and height. r is rotation angle in degrees.

  • XYXYXYXY: rotated boxes represented via corners, x1, y1 being top left, x2, y2 being bottom right, x3, y3 being bottom left, x4, y4 being top right.

Examples using BoundingBoxFormat:

TVTensors FAQ

TVTensors FAQ

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources