Skip to content

A python program that detects human faces in an image and crops them automatically.

Notifications You must be signed in to change notification settings

kenryu42/Face-Detection-And-Auto-Crop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Face Detection And Auto Crop

Language grade: Python
A python program that detects all human faces in an image and crops them automatically.

Optional

The best practice for your project is to use a virtual environment.

Download

cd && git clone https://github.com/kenxdrgn/Face-Detection-And-Auto-Crop

Installation (with virtualenv)

cd Face-Detection-And-Auto-Crop
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Installation (without virtualenv)

cd Face-Detection-And-Auto-Crop
pip install -r requirements.txt

Usage

python auto_crop.py <image_path> ...

Example

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".

About

A python program that detects human faces in an image and crops them automatically.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages