For Every Student or For every programer face detection is enthusiastic. Using Python Open CV module you can detect the faces and shapes of the object.
So. In this blog You will Learn the Basics of face detection First and we will move on to the real world projects
Required Modules for Face Detection
1.Open CV module
2.Numpy module
If You don’t know much about this module please go and search for these modules..
First of all you need to install open cv module in your laptop or desktop.
Open Command prompt and type pip install opencv-python
And for numpy module type pip install numpy
Then open your Favorite IDE for writing the code
Source code :
import cv2
import numpy as np
img = cv2.imread(‘Mention the name of the image’)
// the img variable in the above statement will capture the image that we have specified and be clear that , this file and the image should be in same path. Otherwise you should the exact path of the image
cv2.imshow(‘Basics of Face Detection’,img)
//This statement will pop the window with the title “Basics of Face Detection ” with the image that you have mention in the previous step on the python output console
cv2.waitKey(5000)
cv2.waitKey () this function will shows the output window with the image upto the time which we have given in the brackets
Hey Goutham Your content is very much impressive and it is very useful to the python enthusiastics.
LikeLike
Hey Goutham ur blog is so helpful
LikeLike
GOOD IDEA
LikeLike