How abs6187/helmet-detection works
This repository’s runnable product is a Gradio image interface for helmet detection. A user uploads an image or selects an example; the app runs a loaded YOLO model, draws detections, and returns an annotated image. The README also describes broader video, CSV, and evaluation workflows, but the sampled runtime source does not show those paths, so they are not presented as implemented runtime components.
Main entry points: app.py Gradio interface · images Example images · yolov11nbest.pt YOLOv11 weights
Components 9
Image interface
- Gradio interface
app.py - Example image loader
app.py - Example images
images
Detection pipeline
- Prediction function
app.py - YOLO model
app.py - YOLOv11 weights
yolov11nbest.pt - Detection plotting
app.py - Annotated image
app.py
Other components
- Image user
Connections 9
- Image user → Gradio interface: uploads image
app.py - Gradio interface → Prediction function: invokes
app.py - Example image loader → Example images: lists files
app.py - Gradio interface → Example image loader: loads examples
app.py - YOLO model → YOLOv11 weights: loads weights
app.py - Prediction function → YOLO model: runs inference
app.py - Prediction function → Detection plotting: plots detections
app.py - Detection plotting → Annotated image: converts to image
app.py - Gradio interface → Image user: returns result
app.py