Skip to main content
. 2020 Apr 10;20(7):2145. doi: 10.3390/s20072145
Algorithm 1. The pseudo code of NMS method
Input: B={b1,⋯,bN}, C={c1,⋯,cN}, λnms
    B is the list of initial detection boxes
    C contains corresponding detection confidences
    λnms is the NMS threshold
Output: List of final detection boxes O
1: O←{}
2: while  B≠∅ do
3:  m←argmaxC
4:  O←O∪bm;B←B−bm;C←C−cm
5:  for  bi∈B do
6:   if IoU(bm,bi)≥λnms  then
7:    B←B−bi;C←C−ci
8:   end if
9:  end for
10: end while