This Octave/Matlab script can detect traffic light color analysing live stream. It is trained by few already described samples.
- Classification method: Logistic Regression
- Optimization: Gradient Descent
- Written only for educational purposes
- Intentionally written in pure Matlab language, using only elementary arithmetic operations:
- collect some training samples using bin/collectSamples.bat
- then put them to the respective directories under datasource/train/
- run learn.m script in Matlab/Octave
- collect some test samples using bin/collectSamples.bat
- then put them to the respective directories under datasource/test/
- run check.m script
- open live stream using bin/startStream.bat
- run detect.m script