Line Detection in Motion with PiCar Connected to Raspberry Pi

Hello everyone,

I am working on a project involving a PiCar connected to a Raspberry Pi, and I need some assistance with line detection in motion.

My PiCar is equipped with a USB camera, which is supposed to detect two lines drawn on the floor with electrical tape. These lines represent an imaginary road. The goal is for the car to detect the two lines and stay within them while moving.

Could anyone provide guidance or share examples on how to achieve this using OpenCV with Python? Any tips on setting up the camera, processing the video feed, and implementing the line detection would be greatly appreciated.

Thank you!