A python program that detects all human faces in an image and crops them automatically.
The best practice for your project is to use a virtual environment.
cd && git clone https://github.com/kenxdrgn/Face-Detection-And-Auto-Crop
cd Face-Detection-And-Auto-Crop
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cd Face-Detection-And-Auto-Crop
pip install -r requirements.txt
python auto_crop.py <image_path> ...
python auto_crop.py images/peoples.jpg
or
python auto_crop.py image/peoples.jpg data/group.png human.jpeg
Successfully cropped images will be saved in a folder named "result".