This repository contains code of Lane Departure Warning system for Raspberry Pi with monocular camera.
origianl image
Canny edge detection
Region of interest
Detect road lines
- Software
- Raspbian
- OpenCV
- CMake
- ALSA
- Xming (optional)
- Hardware
- Raspberry Pi 4
- Raspberry Pi Camera Module v1
- Raspberry Pi Sense HAT (optional)
mkdir <project-directory>
cd <project-directory>
git clone https://github.com/sjleo1/LaneDepartureWarning-for-RaspberryPi.git
mkdir build
cd build
cmake ..
make
This code had been written for Raspberry Pi Camera Module v1, which has horizontal/vertical field of view of 53° / 41°. The camera should be installed at the center of the windshield with the height of 1.5 meter above the ground looking forward direction.
adas
adas setup
To setup camera.
adas visual
To visualize image processing techniques used to detect traffice lines.