Use a nerual network to predict the state of a traffic lights, e.g. "red", "yellow", "green", "off"
94.2% at Bosch dataset, Udacity simular and udacity car dataset.
Traffic light state | red | yellow | green | off |
---|---|---|---|---|
Index | 1 | 2 | 3 | 4 |
python main.py
Use the code in the main.py
file_path = './data/green.jpg'
predicted_state = test_an_image(file_path, model=load_model('model.h5'))
Predicted state of the traffic light:
green
A very simple network is used here: