Skip to main content
. 2019 Jul 31;19(15):3371. doi: 10.3390/s19153371
Algorithm 2. Following target.
Input: Class for person L=1, area of the bounding box A=height×weight, maximum area Amax = constant, center of the whole image Cimage=constast
Output:ErrorCenter=CimageCbounding, ErrorArea=AmaxA
1: Look for target N
2: if N=1 then
3: if L=1 then
4:   Calculate A and Cbounding
5:   ErrorCenter=CimageCbounding
6:   ErrorArea=AmaxA
7:   Repeat Step 5 until ErrorCenter=0, and use ErrorCenter for yaw angle
8:   Repeat Step 6 until AmaxA, and use ErrorArea for forwarding velocity
9: end if
10: else
11:  Do nothing
12: end if