computer vision full course from university
This project focuses on detecting Personal Protective Equipment (PPE) using the SH17 dataset. The goal is to build a computer vision model capable of identifying whether individuals in images or video streams are wearing the necessary safety gear, such as helmets, vests, and gloves. This is particularly useful in industrial and construction environments to ensure safety compliance.
The project is implemented in Python using YoloV8, and it is hosted on Google Colab for easy access and experimentation.
The aim of this project is to develop a model for detecting Personal Protective Equipment (PPE) in images or video streams. The model is trained on the SH17 dataset, which contains annotated images of individuals wearing (or not wearing) safety gear like helmets, vests, and gloves.
The project is implemented as a Google Colab notebook, making it easy to run and experiment with without requiring local setup.
The SH17 dataset is used for training and evaluation. It includes:
- Images of workers in industrial settings.
- Annotations for PPE items such as helmets, vests, and gloves.
- Labels indicating whether the required safety gear is being worn.
The dataset is preprocessed and split into training, validation, and test sets to ensure robust model performance.
To run this project, you need access to Google Colab. Follow these steps:
-
Ensure you have a Google account to save your progress and access GPU resources.
-
Run the notebook cells sequentially to install dependencies, load the dataset, train the model, and evaluate performance.
-
Training the Model:
- Run the cells in the notebook to preprocess the data, define the model architecture, and train the model.
- The notebook includes options to use GPU acceleration for faster training.
-
Testing the Model:
- After training, the model can be tested on the validation or test set to evaluate its performance.
- You can also upload custom images or videos to test the model in real-world scenarios.
-
Saving and Loading the Model:
- The trained model can be saved and loaded for future use, either in Colab or locally.
The model achieves the following performance metrics on the SH17 dataset:
- Accuracy: X%
- Precision: Y%
- Recall: Z%
- F1-Score: W%
Sample predictions are visualized in the notebook, showing bounding boxes and labels for detected PPE items.
Contributions to this project are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a detailed description of your changes.