Last updated:
0 purchases
powerboxes 0.2.3
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
# Create a bounding box
box = np.array([[0, 0, 1, 1]])
# Compute the area of the box
area = pb.box_areas(box)
# Compute the intersection of the box with itself
intersection = pb.iou_distance(box, box)
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.