|
PRODUCT DESCRIPTION
|
The car uses YOLOv8 for object detection to predict where the person is in the frame. The server calculates the prediction of each frame and determines where the person is. The prediction then creates a boundbox of where the person is in the frame. With the bounding box enabled, I can pull the coordinates of the person’s location in the pixel in the frame. t returns (x1,x2,y1,y2); using those coordinates, I used a formula to calculate how many feet the person is away from the car. Eventually, the server(laptop) sends those coordinates to the Raspberry PI, which then sends them to the Arduino via serial communication. With the Arduino having the coordinates, we can tell the car where the person is to keep up with and follow that person. If the car gets within eight or fewer feet, it will stop. |