[Paper Review] Real-time Lane detection and Motion Planning in Raspberry Pi and Arduino for an Autonomous Vehicle Prototype
This paper presents a low-cost, real-time autonomous vehicle prototype using a Raspberry Pi 3B and Arduino Uno for lane detection and motion planning. It employs Canny edge detection, Hough transformation, and Kalman filtering to detect lanes, compute a midline steering reference, and smooth trajectory planning, achieving stable real-time performance in controlled tests with successful lane tracking and motion control.
This paper discusses a vehicle prototype that recognizes streets' lanes and plans its motion accordingly without any human input. Pi Camera 1.3 captures real-time video, which is then processed by Raspberry-Pi 3.0 Model B. The image processing algorithms are written in Python 3.7.4 with OpenCV 4.2. Arduino Uno is utilized to control the PID algorithm that controls the motor controller, which in turn controls the wheels. Algorithms that are used to detect the lanes are the Canny edge detection algorithm and Hough transformation. Elementary algebra is used to draw the detected lanes. After detection, the lanes are tracked using the Kalman filter prediction method. Then the midpoint of the two lanes is found, which is the initial steering direction. This initial steering direction is further smoothed by using the Past Accumulation Average Method and Kalman Filter Prediction Method. The prototype was tested in a controlled environment in real-time. Results from comprehensive testing suggest that this prototype can detect road lanes and plan its motion successfully.
Motivation & Objective
- To develop a low-cost, real-time autonomous vehicle prototype capable of lane detection and motion planning without human input.
- To integrate Raspberry Pi 3B for image processing and Arduino Uno for motor control via PID.
- To enable real-time processing of video streams using OpenCV and Python on resource-constrained hardware.
- To improve steering accuracy and stability through Kalman filtering and past accumulation averaging.
- To validate the system's performance in a controlled environment with real-time lane tracking and motion control.
Proposed method
- Raspberry Pi 3B processes real-time video from a Pi Camera 1.3 using Python 3.7 and OpenCV 4.2.
- Canny edge detection identifies lane edges in preprocessed grayscale images.
- Hough transformation detects straight line segments representing lane markings from edge-detected images.
- The midpoint between the two detected lane lines is computed as the initial steering reference.
- Kalman filter prediction is applied to smooth the estimated lane midpoint over time for improved trajectory stability.
- The Past Accumulation Average Method further refines steering direction for reduced jitter and enhanced path tracking.
Experimental results
Research questions
- RQ1Can a low-cost embedded system using Raspberry Pi and Arduino achieve real-time lane detection and motion planning in a controlled environment?
- RQ2How effective is the combination of Canny edge detection and Hough transformation for lane line extraction in real-time video streams?
- RQ3To what extent does Kalman filtering improve the stability and accuracy of the estimated lane midpoint?
- RQ4How does the Past Accumulation Average Method contribute to smoother steering control compared to raw midpoint estimation?
- RQ5Can the integrated system maintain consistent lane-keeping performance under real-time processing constraints?
Key findings
- The prototype successfully detects lane markings in real time using Canny edge detection and Hough transformation on a Raspberry Pi 3B.
- The Kalman filter significantly improves the smoothness and stability of the estimated lane midpoint over time.
- The Past Accumulation Average Method reduces steering command jitter, contributing to smoother vehicle motion.
- The system achieves real-time performance with low-latency processing suitable for embedded deployment.
- Comprehensive testing in a controlled environment confirms the system's ability to detect lanes and plan motion effectively without human intervention.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.