How do I write a python code for non maxima suppression?
I am implementing this algorithm, which requires Non Maxima Suppression (NMS) as one of its steps.
I found this (Faster) Non-Maximum Suppression in Python
and
This Efficient Non-Maximum Suppression
I am finding it hard to understand, confused how to write the code.
Can anyone explain what exactly happens here?
I want to write my own code for this
I am writing my code in python, not C++.
If you want to write your own code for NMS, then this forum is not what you need, but a general Python forum will be ... this is a forum focussed on OpenCV, which already provides NMS. Also the pyimagesearch has the complete code available?
@StevenPuttemans How can OpenCV help me in this case where I have to thin the edges? NMS is being used in bounding box for object detection, not for thinning the edges in pyimagesearch
@StevenPuttemans Please don't say erosion
Hmmm how about thinning algorithms?
@StevenPuttemans I did find thinning algorithm from here and tried to implement Zhang-Suen algorithm and Guo-Hall algorithm These don't seem to work well for images with a lot of noise.
Got a solution for this when I contacted one of the authors who implemented the algorithm.
I'll post solution as soon as I am allowed to answer my own question here ๐
@StevenPuttemans: I have been searching for an OpenCV python function for NMS but have just not been able to find it.
Will you be kind enough to point me to the OpenCV function please?
RS
You can find one for bounding boxes right here: https://github.com/opencv/opencv/blob...