
PowerBoxes
Powerboxes is a package containing utility functions for transforming bounding boxes and computing metrics. It is implemented in both Python and Rust.
It shows a significant speedup over the equivalent numpy implementations in Python, or other libraries such as shapely or torchvision.
Checkout out the documentation !
🐍 Python documentation
Installation
pip install powerboxes
Python Usage
import powerboxes as pb
import numpy as np
box = np.array([[0, 0, 1, 1]])
area = pb.box_areas(box)
intersection = pb.iou_distance(box, box)