Following Line with Centroid Detection

This project is an implementation of line following, using OpenCV to implement the centroid detection algorithm. The project is implemented in Python, and the robot is controlled by a Raspberry Pi. The robot is equipped with a camera, which is used to capture the video feed. The video feed is then processed by the OpenCV library to detect the centroid of the line. The robot use P control to adjust the angular speed, to make sure the centroid is in the middle of the camera frame.
 
 
The algorithm introduction:
 
 
The simulation demo:
 
 
 
Back to Homepage