|
Algorithm 1: calculation algorithm in 3D space. |
| 1: |
Initialize pedestrian detection results, target detection boxes and confidence level. |
| 2: |
Create a List of every unit, a centroid variable C and a pedestrian count variable . |
| 3: |
While ( < < && < < ) do
|
| 4: |
If (target detection boxes) then
|
| 5: |
= + 1 |
| 6: |
for each
do
|
| 7: |
If (C is under the range of the corner coordinates of ) then
|
| 8: |
+ 1 |
| 9: |
end if
|
| 10: |
end for
|
| 11: |
=
|
| 12: |
End while |
| 13: |
Return
|