Spaces:
Running
Running
File size: 1,064 Bytes
dc023a3 1173d05 dc023a3 1173d05 dc023a3 1173d05 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
---
title: Train obstruction detection V1
emoji: π
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: "1.29.0"
app_file: app.py
pinned: false
---
# Traffic Light Detection with Protection Area
This Streamlit app performs traffic light detection and monitors objects within a user-defined protection area. The app uses:
- ShuffleNetV2 for traffic light detection
- YOLO for object detection
- Interactive point selection for defining protection areas
## Features
- Upload and process images
- Interactive protection area definition
- Traffic light state detection
- Object detection within protection area
- Real-time visualization
## How to Use
1. Upload an image using the file uploader
2. Click on the image to define 4 points for the protection area
3. Use "Reset Points" if you need to start over
4. Click "Process Detection" when ready
5. View the results showing traffic light state and detected objects
## Models
- Traffic Light Detection: ShuffleNetV2
- Object Detection: YOLOv8
## Requirements
See requirements.txt for all dependencies. |