Using Python and Python OpenCV library, I have built a class which can detect face in an image(s) and can crop face from the provided image(s). OpenCV is an open source library for real time computer vision. Isntall OpenCV using PyPi command. Read official OpenCV Documentation and OpenCV Python Tutorial.
The face.py file contains the Face class. It has two methods. face_area() returns the pixel coordinates where opencv detects face. It takes one argument, a image. The other method, crop_face crops face using the pixel coordinates and returns the cropped image. The Other folder has some basic concenpts on OpenCV.
salauddintapu / facedetect_opencv Goto Github PK
View Code? Open in Web Editor NEWFace Detection | OpenCV