Skip to main content
. 2021 Jan 27;21(3):843. doi: 10.3390/s21030843
Algorithm 1
 if Headn−Headh<20∘ then
  the target pedestrian is heading in the same direction as the host vehicle, no collision warning is sent
 else if Headn−Headh>160∘ then
  the target pedestrian is heading in the conflict direction with the host vehicle, collision warning is sent
 else if 20∘<Headn−Headh<160∘ then
  the target pedestrian is crossing on the left side of the host vehicle, collision warning is sent
 else if −160∘<Headn−Headh<−20∘ then
  the target pedestrian is crossing on the right side of the host vehicle, collision warning is sent
 end if