Skip to main content
. 2020 Apr 10;20(7):2138. doi: 10.3390/s20072138
Algorithm 1 Rules of paired marking points confirmation

Input:   Two sets B and P, comprising all bounding boxes and marking points in an around view image, respectively.

Output:  Paired marking points.
  • 1:
    forB in B do
  • 2:
      for p in P do
  • 3:
        Count the number N of p in B
  • 4:
      end for
  • 5:
      if N = 2 then
  • 6:
        p1 and p2 are paired marking points
  • 7:
      end if
  • 8:
      if N = 1 and the confidence of B > 95% then
  • 9:
        Step 1: Calculate the other marking point p2 using Equation (4)
  • 10:
        Step 2: p1 and p2 are paired marking points
  • 11:
      end if
  • 12:
      if N = 0 and the confidence of B > 98% then
  • 13:
        Step 1: Calculate the NAIV of the four vertex regions of B using Equation (5)
  • 14:
        Step 2: The largest NAIV set of diagonal vertices p1 and p2 are paired marking points
  • 15:
      end if
  • 16:
      if N > 2 then
  • 17:
        Two points p1 and p2 that is the closest to the diagonal vertices of B are paired marking points
  • 18:
      end if
  • 19:
     end for