Skip to content

artinmohajeri/Face-Cropping-Python-openCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Face Cropping

orangeLine

I have used openCV (cv2) library and it's built in CascadeClassifier model to detect faces.

This project takes an image, removes the background, body, neck and everything else except the face and then, the face will be stored in a file named "cropped_face.jpg"

greenLine

  • note: if the input image has more than one face or no face at all, the app will raise a customized error. okLpG