Skip to main content
. 2020 Jul 31;20(15):4276. doi: 10.3390/s20154276
Algorithm 2: The pseudocode of non-maximum suppression (NMS) for our approach
Original Bounding Boxes:
  B=[b1,,bM], C=[c1,,cM], threshold=0.6
  B refers to the set of original bounding boxes
  C refers to the set of confidences of B
Detection result:
  F refers to the set of the final bounding boxes
1:  F[]
2:   while B[] do:
3:     kargmaxC
4:     FF.append(bk); BdelB[bk]; CdelC[ck]
5:     for biB do:
6:       if IOU(bi,bk)threshold
7:        BdelB[bi]; CdelC[ci]
8:       end
9:     end
10:  end