Welcome to the Safety Detection YOLOv8 project! This initiative leverages YOLOv8, a cutting-edge object detection model, to enhance safety measures by identifying and classifying objects related to personal protective equipment (PPE). The primary objective is to ensure compliance with safety standards in various environments.
- Introduction
- Features
- Getting Started
- Usage
- Customization
- Results
- Contributing
- License
- Acknowledgments
Safety Detection YOLOv8 is an advanced computer vision project designed for real-time object detection. By employing YOLOv8, the model identifies various safety-related objects such as hardhats, masks, safety vests, and more..
- Real-time Object Detection: Leverage the power of YOLOv8 for rapid and accurate identification of safety-related objects.
- Classified Compliance: Categorize detected objects as compliant or non-compliant based on safety standards.
- Customizable: Easily adapt the model for different safety scenarios or extend the list of detectable objects.
Ensure you have the following installed on your system:
- Python (version 3.6 or later)
- Ultralytics YOLO
-
Clone the repository:
git clone https://github.com/biswadeep-roy/Safety-Detection-YOLOv8.git
-
Install dependencies:
pip install -r requirements.txt
-
Download the pre-trained model file (
ppe.pt
) from the following link: -
Place the downloaded
ppe.pt
file in the project's root directory.
-
Confirm that your webcam or video source is accessible.
-
Run the main script:
python safety_detection.py
-
Observe real-time safety detection results on the displayed video stream.
To tailor the project to specific use cases or add new objects for detection, follow these steps:
- Update the
classNames
list in the script with the desired object classes. - Fine-tune the YOLOv8 model on a dataset that includes the new classes.
- Adjust confidence thresholds or color codes in the script according to your requirements.
(Include images or GIFs showcasing the model's performance and compliance detection.)
Contributions are welcomed! Please adhere to our contribution guidelines for a smooth collaboration.
This project is licensed under the MIT License - see the LICENSE file for details.
- Special thanks to the contributors of the Ultralytics YOLOv5 repository.
- Inspired by the necessity for improved safety measures in various environments.