This repository contains a project for detecting face masks and caps using YOLOv8.
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
- Clone the repository (if not already):
git clone https://github.com/4444Harsh/Face_Detection_with_mask_cap.git
cd face-mask-cap-detection- Install dependencies:
pip install -r requirements.txt- Run the detection script:
python main.py- 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.pyto load additional features like FaceNet if needed.