PolyGoneNMS
PolyGoneNMS is a library for efficient and distributed polygon Non-Maximum Suppression (NMS) in Python. It supports various NMS methods, intersection calculations, and can handle large numbers of polygons in 1D, 2D, and 3D spaces. PolyGoneNMS uses R-tree data structures and shapely polygon objects for optimal performance.
Benchmark Plots
Features
- Efficient polygon NMS for large numbers of polygons.
- Support for various NMS methods: Default, Soft, and Class Agnostic.
- Support for different intersection methods: IOU, IOS, and Dice.
- R-tree data structure for efficient spatial indexing and querying.
- Distributed processing support using Ray and Dask.
- Comprehensive documentation and examples.
Installation
You can install PolyGoneNMS using pip:
pip install polygone-nms
Quickstart
import numpy as np
from polygone_nms import polygone_nms
# Example input data
data = np.array([
[0, 0, 1, 1, 0, 1, 0, 0, 1, 0.9],
[0.5, 0.5, 1.5, 1.5, 0.5, 1.5, 0, 0, 1, 0.8],
])
# Apply NMS
results = nms(data, distributed=None, nms_method="Default", intersection_method="IOU")
print("Filtered indices:", results)
# Filtered data
print("Filtered data:")
print(data[results])
For a more detailed guide on using PolyGoneNMS, please see the Quickstart in the documentation.
Documentation
Detailed documentation is available at:
Contributing
We welcome contributions to the project! Please follow the usual GitHub process for submitting issues or pull requests.
License
This project is licensed under the MIT License.
Metadata
Release files for polygonenms-ofo-fork 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| polygonenms_ofo_fork-0.1.0.tar.gz | 9.5 kB | Without provenance | Details for polygonenms_ofo_fork-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polygonenms_ofo_fork-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for polygonenms_ofo_fork-0.1.0-py3-none-any.whl |
Total release size: 19.8 kB
Release files / polygonenms_ofo_fork-0.1.0.tar.gz
| Download URL | polygonenms_ofo_fork-0.1.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e289448d98cc08bcead4b6fd1f157435494958d315a1b03a21217c0c39163ab2
|
|
BLAKE2b-256 checksum How to use checksums |
e1214f5d838b8986d22ef086884f94fb88d410f428e46b5e9cef3fe85688b29e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.12.8 Linux/6.8.0-51-generic
|
Release files / polygonenms_ofo_fork-0.1.0-py3-none-any.whl
| Download URL | polygonenms_ofo_fork-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29b60e9830f5904a907a026799d770bcb7e4dddd6dd98c98752e01ebc665679b
|
|
BLAKE2b-256 checksum How to use checksums |
9d4aa9b9e1b3e9953ab39af2559958ab9b2734f9705d6e5070e86ec1a6a78643
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.12.8 Linux/6.8.0-51-generic
|
Security for polygonenms-ofo-fork 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.