Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 669 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 669 Bytes

bboxrs

A reimplementation of cython_bbox in Rust. It uses the pyo3 crate to interface with Python.

Installation

pip install bboxrs

Usage

from bboxrs import bbox_overlaps

import numpy as np

gt = np.random.random((5, 4)).astype(float)
dt = np.random.random((10, 4)).astype(float)

overlaps = bbox_overlaps(dt, gt)

Disclaimer

  • This is about an order of magnitude slower than the Cython implementation. Probably because I had to do a couple of unnecessary conversions. This is really just an exercise in learning Rust and interfacing with Python.