Skip to content

4444Harsh/Face_Detection_with_mask_cap

Repository files navigation

Face Mask and Cap Detection

This repository contains a project for detecting face masks and caps using YOLOv8.

Folder Structure

face-mask-cap-detection/
├── best_cap.pt         # YOLOv8 model for cap detection
├── best_mask.pt        # YOLOv8 model for mask detection
├── main.py             # Main file to run detection
└── requirements.txt    # Python dependencies

How to Set Up and Run

  1. Clone the repository (if not already):
git clone https://github.com/4444Harsh/Face_Detection_with_mask_cap.git
cd face-mask-cap-detection
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the detection script:
python main.py

Notes

  • Make sure your camera is connected (for webcam input in main.py).
  • If you're using a virtual environment, activate it before installing.
  • You can update main.py to load additional features like FaceNet if needed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages