Skip to content

A python script that uses Python's OpenCV2 and face-recognition libraries to detect faces in live video

Notifications You must be signed in to change notification settings

JerrickLiu/FaceDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Face Detector

A python script that uses Python's OpenCV2 and face-recognition libraries to detect faces in live video or an image

Usage

If you want to use the script in live video, make sure to specifiy that in the arguments. Other than that, all you need are the image path container the faces you want learned, the names of the faces, and if you don't want live video, the path to the test image to run the detector on. All of these are passed as arguments.

For example, you can clone this repo and run

python3 face.py --video True --names Jerrick Liu --image_dir /path/to/images 

Or without video (the default is set to no video)

python3 face.py --image_dir /path/to/images --unknown_image_path /path/to/test/image --names "Jerrick Liu"

About

A python script that uses Python's OpenCV2 and face-recognition libraries to detect faces in live video

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages