Skip to content

Python-based YOLO object detection for PPE detection project. Detects personal protective equipment (PPE) in images or videos to enhance safety.

Notifications You must be signed in to change notification settings

ishita126jain/PPE-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PPE Detection - Personal Protective Equipment Detection using YOLOv8 Object Detection

ss

Introduction

PPE Detection is a Python-based project that employs YOLOv8, a robust object detection model, to identify and classify personal protective equipment (PPE) on construction sites. The project involves downloading a YOLOv8 model from Roboflow, training it on Google Colab, and using the best.pt model to detect PPE in images or videos.

Prerequisites

  • Python 3.6 or higher

  • Virtualenv (optional but recommended)

Installation

  1. Create a virtual environment and activate it:
virtualenv venv
source venv/bin/activate    # On Windows: venv\Scripts\activate
  1. Install required packages:
pip install -r requirements.txt

Training the Model

  1. Download YOLOv8 model from Roboflow:
  • Download the YOLOv8 model file from Roboflow and place it in the weights/ directory.
  1. Train the model on Google Colab:
  • Follow the steps outlined in the colab file (Yolov8.ipynb) to train the model using your custom dataset.

Usage

  1. Prepare your video:
  • Place your video file in the project directory.
  1. Run the PPE Detection:
python PPE-Detection.py 
  1. View the results:
  • The processed video with PPE Detections will identifies and labels present equipment (e.g., "mask") and denotes absence as "no-mask" for each equipment type, providing accurate results.

Configuration

  • You can customize the confidence threshold for PPE detection by modifying the conf parameter in PPE-Detection.py. The default value is set to 0.5.

Acknowledgements

Contribution

Contributions are always welcome!

If you find any issues or have suggestions for improvements, feel free to create a pull request.

Contact

For any questions or inquiries, please contact us at [email protected].

About

Python-based YOLO object detection for PPE detection project. Detects personal protective equipment (PPE) in images or videos to enhance safety.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published