Skip to main content

OpenCV Haar cascade with Non-Maxima Suppression

This simple project provides a Detector class extending the opencv CascadeDetectorclass with a new function: detectAndFilter.
This function performs the detection using the cascade and filter the detections based on the score and their overlap to yield the best detections that do not overlap above the selected overlap-threshold.

For more details about Non-Maxima Suppression, you can refer to my article about Multi-Template Matching, which uses a similar strategy (or other online resources).
Here the NMS shipped with OpenCV is used.

Installation

Using pip:
pip install haar-cascade-nms

Then to use in your scripts:

from haarcascade import Detector
myDetector = Detector(filepathToCascade)
myDetector.detectAndFilter(image, etc...)

See the tutorial notebook for a more detailed documentation.

Release files for haar-cascade-nms 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haar-cascade-nms 1.1.1
File Size Uploaded
haar-cascade-nms-1.1.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for haar-cascade-nms 1.1.1
File Interpreter ABI Platform
haar_cascade_nms-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / haar-cascade-nms-1.1.1.tar.gz

Download URL haar-cascade-nms-1.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
45048e474875df1548fc33e123c4a9a335c70a3a0aed6897f65f766bd0993081
BLAKE2b-256 checksum
How to use checksums
feef68bfda45b2b815bf0d1944b14b9cfd43aaddc3250c52dad560520e853927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / haar_cascade_nms-1.1.1-py3-none-any.whl

Download URL haar_cascade_nms-1.1.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc50958b77b3641a7d499b09de54180d99631876b8a8a2c8bbcbb1a95f43211e
BLAKE2b-256 checksum
How to use checksums
ce35e08b65b9fb1e1ae565e3ef1b9660e2717ed869607ee156965f3ddbc37066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page