Overview
This project utilizes the OpenCV and Pillow (PIL) libraries to detect faces in images and webcam feeds, marking them with rectangles. The detected faces are saved in a specified output directory.
Scripts
- main.py: The selection menu for Detect-Face
- feed_detection.py: Detect faces in a webcam-feed
- image_detection: Detect faces in an image
- install_dependencies.py: Install dependencies
Environment Setup
python -m venv venv
source venv/bin/activate
pip install -r requirements.txtpython.exe -m pip install --upgrade pip
py -3.11 -m venv venv311
venv311\Scripts\activate
pip install -r requirements.txtUsing Python directly:
python main.pyUsing provided scripts:
Windows:
.\run.bator.\run.ps1
Unix-like systems (Linux/macOS):
.\run.sh