Skip to main content

3D bounding box NMS and plotting package

Project description

3D Non-Maximum Suppression

PyPI version Downloads Python versions License

Implementation of 3D non-maximum suppression (NMS-3D) for bounding boxes using PyTorch and Plotly.

⬇️ Installation and Import

Now, this code is available with PyPI here. The package can be installed with:

pip install nms-3d

and can be imported as:

import nms_3d

📂 Project Organization

The project consists of the following Python modules:

.
├── nms_3d/                # The NMS 3D package folder   ├── nms_3d.py          # Function that applies the NMS 3D algorithm.   └── plot_3d_boxes.py   # Function for creating 3D plots of bounding boxes using Plotly.
│
├── example.py             # The script that contains the 3D NMS application example.
│
├── bbox-coords/           # The folder that contains the bounding box .csv files before and after the 3D NMS.   ├── bbox-coords-before-nms-3d.csv  # Example file of bounding boxes to suppress.   └── bbox-coords-after-nms-3d.csv   # Output file after applying the 3D NMS on bbox-coords-before-nms-3d.csv.
│
└── output/                # The folder that contains the .html visualization of the boxes before and after the 3D NMS.
    ├── best_boxes_after_nms.html   # .html view of the boxes after the 3D NMS.
    ├── best_boxes_before_nms.html  # .html view of the boxes before the 3D NMS.
    └── NMS-image-example.png       # Example image used in this README.md file.

Run the application example with:

python3 example.py

This code will read the bounding box coordinates from bbox-coords-before-nms-3d.csv, perform 3D NMS, and save the result to bbox-coords-after-nms-3d.csv. Also, two 3D plots are saved as HTML files to show the boxes before and after NMS.

📦 Package documentation

Package documentation is available here.

🚨 Requirements

Python>=3.8.0
torch>=2.2.2
plotly>=5.13.1

Install the requirements with:

pip3 install -r requirements.txt

🤝 Contribution

👨‍💻 Ciro Russo, PhD

⚖️ License

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

nms_3d-0.1.7.tar.gz (375.8 kB view details)

Uploaded Source

Built Distribution

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

nms_3d-0.1.7-py3-none-any.whl (374.1 kB view details)

Uploaded Python 3

File details

Details for the file nms_3d-0.1.7.tar.gz.

File metadata

  • Download URL: nms_3d-0.1.7.tar.gz
  • Upload date:
  • Size: 375.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nms_3d-0.1.7.tar.gz
Algorithm Hash digest
SHA256 b759f986fe685300328dd7d8bbf3051c81e4aedf80f9627663c2ba88a55bcd30
MD5 eee418f6bf7932acb83582e808858fc0
BLAKE2b-256 867d988eb903b8792b17a08e583bce88935a20416a50f05ff29451c74f5b109b

See more details on using hashes here.

File details

Details for the file nms_3d-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: nms_3d-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 374.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nms_3d-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 06ef7a891a8823970ff41c03265bbb2aab6b6e3371b1a1374746b3f6a6b55279
MD5 a5acb089eebb6a33caf2845867496cf1
BLAKE2b-256 66b46b8690bafe4bd66fa6495f0a92f150a12d09c90089bccf5e233699a87094

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