semvec/pypi-packages huggingface dataset:
cython-bbox-og 1.0.0
Standalone cython_bbox
Keywords: cython_bbox_og

# cython_bbox

COPIED FROM THE ORIGINAL [cython-bbox](https://github.com/samson-wang/cython_bbox)

Credits:

* samson-wang
* Yyuk-Liao
* a-j-paul
* Philip Fu (cython_bbox_fix)

Modifications have been made from the original code to update for new numpy versions

---
The original README is repeated below

---

cython_bbox is widely used in object detection tasks. To my best knowledge, it was first implemented in [Faster-RCNN](https://github.com/rbgirshick/py-faster-rcnn). Since then, almost all object detection projects use the source code directly.

In order to use it in standalone code snippets or small projects, I make it a pypi module. The `cython_bbox.pyx` is totally borrowed from [Faster-RCNN](https://github.com/rbgirshick/py-faster-rcnn). Thanks [RBG](http://www.rossgirshick.info/)!

## install

```
pip install cython_bbox
```

## usage


```
from cython_bbox import bbox_overlaps
overlaps = bbox_overlaps(
        np.ascontiguousarray(dt, dtype=np.float32),
        np.ascontiguousarray(gt, dtype=np.float32)
    )

```