Skip to content

ak224001/Face-Detection-with-OpenCV-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Face-Detection-with-OpenCV-Python

OpenCV library to detect faces in an image

1.Load the necessary Libraries

2.Loading the image

3.convert the image to grayscale

4.Since we know that OpenCV loads an image in BGR format, so we need to convert it into RBG format to be able to display its true colors.

5.Load the classifier for frontal face

5.using detectMultiscale get the co-ordinate of face.This function will return a rectangle with coordinates(x,y,w,h) around the detected face

6.loop over all the coordinates it returned and draw rectangles around them using Open CV.

7.convert image to RGB and show image

thank you

About

OpenCV library to detect faces in an image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages