Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/super3/traffic-cv
Toolset for determining physical state from traffic cameras.
https://github.com/super3/traffic-cv
Last synced: 27 days ago
JSON representation
Toolset for determining physical state from traffic cameras.
- Host: GitHub
- URL: https://github.com/super3/traffic-cv
- Owner: super3
- License: mit
- Created: 2015-03-31T03:20:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T02:09:34.000Z (about 2 years ago)
- Last Synced: 2024-04-14T01:11:22.698Z (9 months ago)
- Language: CSS
- Homepage:
- Size: 20.6 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Traffic CV
Toolset for determining physical state from traffic cameras.[![Build Status](https://travis-ci.org/ovsoinc/traffic-cv.svg?branch=master)](https://travis-ci.org/ovsoinc/traffic-cv)
[![Coverage Status](https://coveralls.io/repos/github/ovsoinc/traffic-cv/badge.svg?branch=master)](https://coveralls.io/github/ovsoinc/traffic-cv?branch=master)
[![License](https://img.shields.io/badge/license-AGPLv3-blue.svg?label=license)](https://github.com/Storj/ovsoinc/traffic-cv/blob/master/LICENSE)
[![GitHub contributors](https://img.shields.io/github/contributors/ovsoinc/traffic-cv.svg)](https://github.com/ovsoinc/traffic-cv/graphs/contributors)### Demo
![demo.gif](demo.gif)### Run Traffic Light Demo
```
node index.js
````
Then open up ```index.html``` in your browser.### Train Traffic Light Neural Net
```
node train.js
```
You must have training images in `/images/training/green`, `/images/training/yellow`, and `/images/training/red`.### Run the Trained Neural Net Through Test Suite
```
npm test
```
Will test the net against the training and testing data. Make sure to have categorized images in `/images/testing`.### Test Neural Net with a Specific Image
```
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.
```### Capture Training/Testing Data
```
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.