Skip to main content

PolyGoneNMS with updated dependency versions

Project description

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

Benchmark results

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: Docs

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polygonenms_ofo_fork-0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polygonenms_ofo_fork-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file polygonenms_ofo_fork-0.1.0.tar.gz.

File metadata

  • Download URL: polygonenms_ofo_fork-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/6.8.0-51-generic

File hashes

Hashes for polygonenms_ofo_fork-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e289448d98cc08bcead4b6fd1f157435494958d315a1b03a21217c0c39163ab2
MD5 ff8f460ebaa500fab03e0e991f72759a
BLAKE2b-256 e1214f5d838b8986d22ef086884f94fb88d410f428e46b5e9cef3fe85688b29e

See more details on using hashes here.

File details

Details for the file polygonenms_ofo_fork-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: polygonenms_ofo_fork-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/6.8.0-51-generic

File hashes

Hashes for polygonenms_ofo_fork-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29b60e9830f5904a907a026799d770bcb7e4dddd6dd98c98752e01ebc665679b
MD5 afd1a2a6f433858c56f19cf17f23bfa9
BLAKE2b-256 9d4aa9b9e1b3e9953ab39af2559958ab9b2734f9705d6e5070e86ec1a6a78643

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page