Road Anomaly Detection Web Interface
A simple Flask web application for detecting road defects using a YOLOv8 model.
Features
- Upload images for road defect detection
- View detection results with bounding boxes
- See detection details (defect type, confidence)
Setup Instructions
Clone the repository
Install dependencies
pip install -r requirements.txtEnsure your model file is available
Make sure your
YOLOv8_Small_RDD.ptfile is in the root directory, or update theMODEL_PATHinapp.pyto point to the correct location.Run the application
python app.pyAccess the web interface
Open your browser and navigate to http://localhost:5000
Project Structure
.
βββ app.py # Main Flask application
βββ requirements.txt # Python dependencies
βββ YOLOv8_Small_RDD.pt # Your trained model file
βββ static/
β βββ css/
β β βββ style.css # CSS styles
β βββ uploads/ # Uploaded images (auto-created)
β βββ results/ # Detection result images (auto-created)
βββ templates/
βββ index.html # Homepage template
βββ results.html # Results page template
Usage
- Open the web interface in your browser
- Upload a road image using the provided form
- The system will process the image and display the results
- View the original image, detected anomalies, and detection details