Skip to main content
. 2021 Feb 3;21(4):1033. doi: 10.3390/s21041033
Algorithm 3 Non-Maximum Suppression
Input:
    Bounding boxesB={b1,,b200} ,  biR4; Nt
    Scores=s1,,s200, siR1;
Output:
    Bounding boxes D,score S;
1: function NMSB,S,Nt
2: D{ }
3: while  B # empty  do
4:    margmaxS
5:    Mbm:
6:    DDM:
7:    BBM:
8:    for bi in B  do
9:        if IoUM,bi>Nt then
10:            BBbi:
11:            SSSi:
12:        end if
13:    end for
14: end while
15: return D,S
16: end function