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.
- 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.
-
Clone the repository:
git clone https://github.com/MrAliAmani/PPE-detection.git cd PPE-detection -
Install the dependencies:
pip install -r requirements.txt
-
Download YOLOv8 model weights and place them in the
models/directory.
-
Run detection on an image or video:
python detect.py --source path_to_image_or_video --output path_to_output
-
For real-time detection using a webcam:
python detect.py --source 0 --output path_to_output
detect.py: Main script for detection and tracking.models/: Directory for YOLO model weights.PPE-Detection-Final.ipynb: Jupyter notebook for running experiments.
Contributions are welcome! Please fork the repo, create a branch, and submit a pull request.
This project is under MIT license:
If you have any feedback, please reach out to me at [email protected].


