Toolset for determining physical state from traffic cameras.
node index.js
Then open up index.html
in your browser.
node train.js
You must have training images in /images/training/green
, /images/training/yellow
, and /images/training/red
.
npm test
Will test the net against the training and testing data. Make sure to have categorized images in /images/testing
.
node run.js [path_to_image]
Example:
node run.js images/38-1531834988419.jpeg
[ 0.01618855582872857, -0.00072788746163907, 0.46764020897403424 ]
Traffic lights are 'red' with a 46.76% probability.
node index.js --capture
Will store captured images in /images/capture
directory. You can then put those images in proper state directory in /images/training
or /images/testing
directory.