Skip to content

This project uses YOLO and DeepSort algorithm to detect and segment personal protection equipment.

Notifications You must be signed in to change notification settings

MrAliAmani/PPE-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PPE Detection

This project uses YOLOv8 and DeepSORT algorithms to detect and track personal protective equipment (PPE) in images and videos. It identifies safety gear such as helmets, vests, and masks to ensure compliance in various environments.

PPE Detection Example

Features

  • Real-time Object Detection: YOLOv8 detects PPE items with high accuracy.
  • Object Tracking: DeepSORT tracks detected objects across video frames.
  • Comprehensive PPE Identification: Recognizes multiple PPE items including helmets, vests, and masks.

Installation

  1. Clone the repository:

    git clone https://github.com/MrAliAmani/PPE-detection.git
    cd PPE-detection
  2. Install the dependencies:

    pip install -r requirements.txt
  3. Download YOLOv8 model weights and place them in the models/ directory.

Usage

  1. Run detection on an image or video:

    python detect.py --source path_to_image_or_video --output path_to_output
  2. For real-time detection using a webcam:

    python detect.py --source 0 --output path_to_output

Examples

Image Detection

Image Detection Result

Video Detection

Video Detection Result

File Structure

  • detect.py: Main script for detection and tracking.
  • models/: Directory for YOLO model weights.
  • PPE-Detection-Final.ipynb: Jupyter notebook for running experiments.

Contributing

Contributions are welcome! Please fork the repo, create a branch, and submit a pull request.

License

This project is under MIT license:

MIT License

Feedback

If you have any feedback, please reach out to me at [email protected].

Authors

@AliAmani

About

This project uses YOLO and DeepSort algorithm to detect and segment personal protection equipment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published