LaneDetect is a simple road lane detection algorithm using OpenCV, which I originally wrote in Python and then transferred to C++ to get familiar with the C++ API of OpenCV.
- Linux (I recommend Ubuntu 16.04 or 18.04)
- OpenCV Version >= 3.4 (sources download, installation instructions
- Spline header library from here (will be automatically downloaded if you run cmake)
Clone this repository, e.g. git clone https://github.com/jhallier/LaneDetect
cd LaneDetect
mkdir build
cd build
cmake ..
make
Run
./LaneDetect [image filename]
or call the LaneDetect class functions from your own code.
- Using different color spaces for improved lane detection
- Smoothing over a few frames
- Track lanes over time (assign IDs to lanes, distinguish own and other lanes)
- Improve robustness at crossroads etc.