PyBBoxes is a lightweight Python toolkit designed for handling bounding box operations. It provides abstractions for various bounding box formats (e.g., Pascal VOC, YOLO, COCO, Albumentations, FiftyOne) and allows for seamless conversions, common mathematical operations, scaling, clamping, and IoU computations. The current version is 0.2.0, and the library maintains an active release cadence with regular updates.
pip install pybboxesVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a `BoundingBox` object from Pascal VOC coordinates, convert it to YOLO format, calculate Intersection over Union (IoU) with another box, and apply scaling and clamping operations. It highlights the use of both the `BoundingBox` class and functions from `pybboxes.functional`.
If your code relies on strict boundary checking, explicitly set `strict=True` when creating `BoundingBox` objects or performing conversions. If you previously handled `OutOfBoundsError` and now want the non-strict behavior, you might need to adjust.
Update your imports to fetch functional methods from `pybboxes.functional` (e.g., `from pybboxes.functional import bbox_iou`).
Upgrade your Python environment to version 3.8 or higher. If you need to use an older Python version, you must use an older `pybboxes` release (e.g., v0.1.1 supported Python 3.6).
Review calls to `from_array()` if you are providing multidimensional inputs and verify the output is as expected. Refer to documentation for supported input shapes for specific box types.
No dependency data recorded yet.