I want to create a two-wheeled line following robot. I want to use the camera to detect a black line for the car to follow.
I have programmed the wheels so now I need to work on the line detection. I am thinking that the camera should take pictures all the time and then use OpenCV to analyze the pictures to see where the middle of the line is and then use one wheel to adjust the car to the middle of the line.
How do I do this?