web4355/road-damage-detection
1
Road Damage Detection Web App
A modern web application for detecting road damage (potholes, cracks, etc.) using YOLOv8 and Flask.
Features
- Modern UI: Clean, responsive interface with drag-and-drop support.
- Fast Detection: Uses YOLOv8 for accurate, real-time object detection.
- Render Ready: Configured for easy deployment to Render (Free Tier compatible).
Tech Stack
- Backend: Python, Flask, OpenCV, Ultralytics YOLOv8
- Frontend: HTML5, CSS3, JavaScript (Vanilla)
- Deployment: Gunicorn (for production)
Running Locally
- Install Dependencies:
pip install -r requirements.txt- Run the Application:
python app.py The app will start at http://localhost:5000.
- Usage:
- Open your browser and go to
http://localhost:5000. - Upload an image (drag & drop or click to browse).
- View the detected damage and download the result.
Deploying to Render
- Push this code to a GitHub repository.
- Log in to Render.
- Create a new Web Service.
- Connect your GitHub repository.
- Render will auto-detect the configuration:
- Runtime: Python 3
- Build Command:
pip install -r requirements.txt - Start Command:
gunicorn app:app - Click Deploy Web Service.
Note: This app is optimized for Render's Free Tier (512MB RAM). The YOLOv8 model is loaded globally to save memory per request.
