How nerusuniharika/car-damage-detection works
This is a Flask car-damage detection application. Users can sign in, submit an image or MP4 with a confidence threshold, and view detections and damage-severity summaries; they can also view a live webcam stream. The app.py excerpt supports these flows and shows video-result cleanup and optional ffmpeg conversion. The tree also indicates chart, performance, and detection-related views, but their wiring is not shown, so those links are omitted.
Main entry points: app.py Flask routes · app.js Browser UI · best.pt YOLO weights · results Video results
Components 19
Web experience
- Browser UI
static/js/app.js - Sign-in view
templates/login.html - Home view
templates/first.html - Image view
templates/image.html - Video view
templates/video.html - Webcam view
templates/webcam.html - Chart view
templates/chart.html - Performance view
templates/performance.html
Detection processing
- Flask routes
app.py - Detection summaries
app.py - YOLO weights
best.pt
Media and results
- Upload files
uploads - Video results
static/results
External integrations
- YOLO inference
- Image decoding
- OpenCV media
- Webcam device
- Video conversion
Other components
- User
Connections 21
- User → Browser UI: uses
- Browser UI → Flask routes: submits requests
- Flask routes → Sign-in view: renders
- Flask routes → Home view: renders
- Flask routes → Image view: renders
- Flask routes → Video view: renders
- Flask routes → Webcam view: renders
- Flask routes → YOLO weights: loads
- Flask routes → Image decoding: decodes image
- Flask routes → OpenCV media: reads video
- Flask routes → OpenCV media: captures frames
- Flask routes → YOLO inference: predicts
- YOLO inference → YOLO weights: uses
- Flask routes → Detection summaries: summarizes detections
- Flask routes → Upload files: saves upload
- Flask routes → Video results: writes processed video
- Flask routes → Video results: prunes old files
- Flask routes → Webcam device: opens stream
- Flask routes → Video conversion: converts video
- Flask routes → Chart view: renders
- Flask routes → Performance view: renders