Giter VIP home page Giter VIP logo

pwilliamspeniel / pothole-detection Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 50.18 MB

This repository houses Python code dedicated to the automated identification of potholes in user-provided images. Leveraging YOLO (You Only Look Once) for precise object detection, the system also integrates EXIF data to show the locations on an interactive web map.

Home Page: https://pwilliamspeniel.github.io/Pothole-Detection/detected.html

License: MIT License

Python 41.39% HTML 58.61%

pothole-detection's Introduction

Automatic Pothole Detection from Images with EXIF Data

ezgif com-gif-maker

Welcome to the Automatic Pothole Detection project! This repository contains Python code designed to automatically detect potholes in user-submitted images. The system utilizes YOLO (You Only Look Once) for object detection and incorporates EXIF data for improved accuracy.

Overview

Detected potholes are visualized in an interactive web interface, and the results of predictions are stored in the runs/detect/predict folder. Images without detections are moved to the no_detection folder. These folders are all created automatically.

Explore the Detected Potholes Map - an interactive map of detected potholes.

Getting Started

Prerequisites

  • Python 3.6 or later
  • Git

Clone the Repository

git clone https://github.com/your-username/your-repository.git
cd your-repository

Install Dependencies

python -m venv venv
source venv/bin/activate   # On Windows: venv\Scripts\activate
pip install -r requirements.txt

Run the Prediction Script

python predict.py
  1. Ensure your images are in the prediction_images folder.
  2. Predictions will be saved in the runs/detect/predict folder.
  3. Images without detections will be moved to the no_detection folder.
  4. Verify that your images have EXIF data, including GPS information for accurate predictions.

Run the Automation Script

# Note: Only run automation.py if your images contain EXIF data
python automation.py
  • This script generates an interactive map named detected.html showcasing the locations of detected potholes.

  • Ensure GPS data is available in the images for accurate mapping.

Project Structure

  • predict.py: Python script for predicting potholes using YOLO and processing images.

  • automation.py: Python script for generating an interactive map of detected potholes.

  • GPS_extraction.py: Dependency for extracting GPS location from images.

  • prediction_images/: Folder containing images for prediction.

  • train_runs/: Folder containing YOLO training runs.

  • runs/: Folder for storing detection results.

    • detect/: Subfolder for detection results.
      • predict/: Subfolder for predicted images.
  • no_detection/: Folder for images with no detected potholes.

View the Deployed Example

Explore the Detected Potholes Map - an interactive map of detected potholes.

Contributing

Contributions are welcome! If you'd like to contribute to the development of this project, please open an issue or submit a pull request.

pothole-detection's People

Contributors

pwilliamspeniel avatar

Stargazers

Martin Aborgeh avatar Zenas Kwaku Awuku avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.