Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

YOLOv8 and SAM Integration for Real-Time Pothole Detection and Segmentation

Description

This project demonstrates how to use a custom-trained YOLOv8 model for detecting potholes and integrate it with the Segment Anything Model (SAM) for precise, zero-shot segmentation of potholes. It also computes and displays the area of each pothole segment in real-time video footage captured from a car dashcam.

Project Workflow:

  1. Custom training of YOLOv8 for pothole detection.
  2. Real-time pothole detection on dashcam video.
  3. Integration of YOLOv8 with Meta's Segment Anything Model (SAM) for segmentation.
  4. Real-time area calculation and annotation of pothole areas.

Prerequisites

  • Python 3.8+
  • YOLOv8 (Ultralytics)
  • Segment Anything Model (SAM) from Meta AI

Steps to Run

  1. Install Dependencies

    pip install ultralytics segment_anything opencv-python matplotlib  numpy
  2. YOLO and SAM Model Preparation

    • Place your custom YOLO model (best.pt) and SAM model checkpoint (sam_b.pt) in the project folder.
  3. Running the Application

    • Execute the provided Jupyter Notebook (yolo-sam.ipynb) or Python script to perform inference on video.

License

This project is for educational purposes.

Authors

  • Your Name: Dr T.K.Senthil Kumar

About

"Real-time pothole detection and segmentation using YOLOv8 and zero-shot SAM, app for automated road hazard analysis."

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages