Algorithm 1 Rules of paired marking points confirmation |
Input: Two sets and , comprising all bounding boxes and marking points in an around view image, respectively.
Output: Paired marking points.
-
1:
for in
do
-
2:
for
in
do
-
3:
Count the number N of in
-
4:
end for
-
5:
if N = 2 then
-
6:
and are paired marking points
-
7:
end if
-
8:
if N = 1 and the confidence of > 95% then
-
9:
Step 1: Calculate the other marking point using Equation ( 4)
-
10:
Step 2: and are paired marking points
-
11:
end if
-
12:
if N = 0 and the confidence of > 98% then
-
13:
Step 1: Calculate the NAIV of the four vertex regions of using Equation ( 5)
-
14:
Step 2: The largest NAIV set of diagonal vertices and are paired marking points
-
15:
end if
-
16:
if N > 2 then
-
17:
Two points and that is the closest to the diagonal vertices of are paired marking points
-
18:
end if
-
19:
end for
|