Skip to content

tomekceszke/traffic-light-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traffic Light Detection

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

Proof of concept

Note

  • Written only for educational purposes
  • Intentionally written in pure Matlab language, using only elementary arithmetic operations:

Training samples

samples

Training efficiency

red_sample

Run

Learn (optional)

  • 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

Test (optional)

Detect

Requirements