Algorithm 1: Collision avoidance and feedback |
-
1.
Capture video from the camera
-
2.
-
3.
Store the center point, height, and width of the bounding box in the current frame, and the object trajectory vectors
-
4.
Check if the object is moving toward the user:
-
5.
Store the current center points and distance for the next iteration
-
6.
|