Skip to main content
. 2025 Apr 17;25(8):2518. doi: 10.3390/s25082518
Algorithm 1 EIOU-NMS.
  • Input: 

    B={b1,b2,,bn},S={S1,S2,,Sn},Nt

    B: List with all prediction boxes

    S: Confidence values corresponding to all prediction boxes

    Nt: Confidence threshold

  • Output: 

      The final list of prediction boxes D

  •    

     Implementation process:

    Step1: Initialize the prediction box output list D=Φ

    Step2: Sort S and set the prediction box with the highest confidence as the base box M

    Step3: Take M from B and put it into D

    Step4: Iterate through list B and remove the extra prediction boxes using the following

    IOU(M,bi)REIOU(M,bi)Nt, then

    B=Bbi,S=SSi

     end

    Step5: Repeat steps 1 through 4 to output the list of prediction boxes D when B is empty