CoolFace
Apppublic

ghayas1214/Traffic-monitoring-app

sourceHugging Facegpl-3.0updated 8mo agoView on Hugging Face
0likes
App README

YOLOv5 Video Object Detection

This application provides an easy-to-use interface for object detection in videos using YOLOv5.

Features

  • โ€”๐ŸŽฏ Detects 80+ object classes (people, vehicles, animals, etc.)
  • โ€”๐Ÿ“น Supports multiple video formats (MP4, AVI, MOV)
  • โ€”โš™๏ธ Adjustable confidence threshold
  • โ€”๐Ÿ“Š Real-time progress tracking
  • โ€”๐Ÿ’พ Download processed videos with bounding boxes

How to Use

  1. 1.Upload your video file
  2. 2.Adjust the confidence threshold (default: 0.25)
  3. 3.Lower = more detections (may include false positives)
  4. 4.Higher = fewer but more accurate detections
  5. 5.Click 'Process Video'
  6. 6.Wait for processing to complete
  7. 7.Download your processed video

Detected Object Classes

The YOLOv5 model can detect 80 COCO dataset classes including:

People & Animals:

  • โ€”Person, Dog, Cat, Horse, Bird, Sheep, Cow, Elephant, Bear, Zebra, Giraffe

Vehicles:

  • โ€”Car, Truck, Bus, Motorcycle, Bicycle, Train, Airplane, Boat

Everyday Objects:

  • โ€”Laptop, Cell Phone, Book, Clock, Bottle, Cup, Chair, Couch, Bed

Sports Equipment:

  • โ€”Baseball Bat, Baseball Glove, Skateboard, Surfboard, Tennis Racket

And many more!

Performance Tips

  • โ€”โœ… For faster processing, use shorter videos (under 1 minute)
  • โ€”โœ… Higher resolution videos take longer to process
  • โ€”โœ… Increase confidence threshold for fewer detections
  • โ€”โœ… The app works best with clear, well-lit videos

Technical Details

  • โ€”Model: YOLOv5s (Small) - Good balance between speed and accuracy
  • โ€”Framework: PyTorch + Ultralytics YOLOv5
  • โ€”Interface: Gradio
  • โ€”Processing: CPU-based (suitable for Hugging Face Spaces free tier)

Limitations

  • โ€”Processing time depends on video length and resolution
  • โ€”Large videos (>5 minutes) may timeout on free tier
  • โ€”CPU processing is slower than GPU but more accessible

Credits

License

GPL-3.0 (inherited from YOLOv5)


Built with โค๏ธ using YOLOv5 and Gradio