28 lines
721 B
Markdown
28 lines
721 B
Markdown
|
|
# Traffic Flow Monitoring
|
||
|
|
|
||
|
|
VIMS instance for traffic-monitoring.
|
||
|
|
|
||
|
|
## Related Article
|
||
|
|
[/insights/continuous-monitoring-vs-periodic-inspection/](https://landvex.com/insights/continuous-monitoring-vs-periodic-inspection/)
|
||
|
|
|
||
|
|
## Anomaly Classes
|
||
|
|
- congestion
|
||
|
|
- accident
|
||
|
|
- road_closure
|
||
|
|
- construction_zone
|
||
|
|
- signal_malfunction
|
||
|
|
|
||
|
|
## Quick Start
|
||
|
|
|
||
|
|
1. Add training images to `data/raw/`
|
||
|
|
2. Annotate using LabelImg (YOLO format)
|
||
|
|
3. Run preprocessing: `python src/detector.py`
|
||
|
|
4. Train model: `python src/detector.py --train`
|
||
|
|
5. Run inference: `python src/detector.py --predict data/test/image.jpg`
|
||
|
|
|
||
|
|
## API
|
||
|
|
|
||
|
|
Once deployed, access via:
|
||
|
|
- REST: `POST /api/traffic-monitoring/predict`
|
||
|
|
- WebSocket: `ws://host/ws/traffic-monitoring/alerts`
|