Skip to main content

Utilities to easily convert between different bounding box formats (YOLO, XYWH, XYXY, etc.).

Project description

https://travis-ci.com/EricWiener/bbox-utils.svg?branch=master https://coveralls.io/repos/github/EricWiener/bbox-utils/badge.svg?branch=master PyPI

bbox-utils

Utilities to easily convert between different bounding box formats (YOLO, XYWH, XYXY, etc.).

You can install bbox-utils with PyPI: $ pip install bbox-utils.

Description

You can find documentation for the project at here.

2D Bounding Box Conversions

  • List of points [top left, top right, bottom right, bottom left]

  • XYWH: top left, width, height

  • XYXY: top left, bottom right

  • YOLO

3D Bounding Box Conversions You can create a 3D bounding box with either:

  • A center point, width, height, depth, and rotation

  • The eight vertices

You can convert between the two forms and also get a triangular polygon to use for plotting triangular meshes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bbox-utils-0.0.1-1.tar.gz (16.7 kB view hashes)

Uploaded Source

Built Distribution

bbox_utils-0.0.1-1-py2.py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page