Traffic Light Detection
February 2016
Using MATLAB image filters to isolate red and green light.
How it was made
The purpose of the algorithm is to detect when the start of the race, when the light changes from red to green. To do this, we needed an accurate way to detect both the colour red and green. Doing so, we would activate the motors of the robot if there was a sudden disappearance of red and emergence of green.
Some Problems
Sometimes glare and angling can completely change what a colour looks like. To combat this, we had to make sure the filter for the red and green lights were forgiving enough to detect a wider range of values, without misinterpreting other colours as red/green.