Utilities to easily convert between different bounding box formats (YOLO, XYWH, XYXY, etc.).
Description
You can find documentation for the project at here.
List of points [top left, top right, bottom right, bottom left]
XYWH: top left, width, height
XYXY: top left, bottom right
YOLO
You can create a 3D bounding box with either:
A center point, width, height, depth, and rotation
The back-bottom-left point, width, height, depth, and rotation
You can convert between the two forms and also get a triangular polygon to use for plotting triangular meshes.
The majority of the 3D Bounding Box implementation comes from the bbox PyPI package.
Visualizations You can use bbox-utils to visualize annotations within point clouds or images.
To use point clouds, you will need to install open3d and plotly with either:
pip3 install open3d plotly==4.14.3 pip install # or conda install -c open3d-admin open3d conda install -c plotly plotly=4.14.3
At the time of writing this, open3d requires Python < 3.9
To use images, you will need to install OpenCV:
pip3 install opencv-python # or conda install opencv -c conda-forge
Making Changes & Contributing
This project uses pre-commit, please make sure to install it before making any changes:
pip install pre-commit cd bbox-utils pre-commit install
It is a good idea to update the hooks to the latest version:
pre-commit autoupdate
Note
This project has been set up using PyScaffold 4.0rc1. For details and usage information on PyScaffold see https://pyscaffold.org/.
Release files for bbox-utils 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bbox-utils-0.1.1.tar.gz | 624.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bbox_utils-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 638.7 kB
Release files / bbox-utils-0.1.1.tar.gz
| Download URL | bbox-utils-0.1.1.tar.gz |
|---|---|
| Size | 624.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eeda4ce80b8b2e962f15f7dfd521ba286267db4bde5ec7fd11e8dfedea0ba998
|
|
BLAKE2b-256 checksum How to use checksums |
dd75eb3736f7b3ef0bc8bfbb3f5371191a5b7376f63258af4d351ca4278897a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.6
|
Release files / bbox_utils-0.1.1-py2.py3-none-any.whl
| Download URL | bbox_utils-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6a47ba5c4a87c799ecfefc1ae9695e46025f20f78cd70ed2fc01489898dc1620
|
|
BLAKE2b-256 checksum How to use checksums |
6a4768237dd3b78b4a97d9828edf6a01c07ddc6e668d56bf965cd138f1780fd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.6
|