0% found this document useful (0 votes)
30 views8 pages

Face Detection Report

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views8 pages

Face Detection Report

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

VNR VJIET, HYDERABAD

CERTIFICATE
This is to certify that the preliminary project work entitled as

FACE DETECTION USING PYTHON

Under the course of Python is done by

KATUKU LAXMI SNEHAL-21071A0228


KESANA JAYASURYA-21071A0229
KORUTLA BHANUTEJA-21071A0230
LAKHAMRAJU SAI CHANDU-21071A0233
JAKKAM SRINITHYA-21071A0223
OF
B-TECH PYTHON LABORATORY

PROJECT GUIDE

Dr.N.SUDHAKAR YADAV Dr. Poonam Upadhyay Assistant professor


of VNRVJIET HOD of EEE Dept. VNRVJIET
AIM:
To create a face detection using python to detect human faces

PURPOSE:
Face detection is used in security systems to identify people entering or
leaving restricted areas. For example, it is used in airports to scan faces of
passengers as they pass through security checkpoints. It is also used in
banks and other financial institutions to identify customers who are trying
to access their accounts.
Face detection is used in research applications to study human behavior and
emotions. This can help us to understand how people interact with each
other and with the world around them. For example, researchers are using
face detection to study how people's facial expressions change when they
are feeling different emotions.

MODULES TO BE USED:
• OpenCV

TOOLS TO BE USED
• Python IDLE

OVERVIEW
The objective of our project is to implement an FACE DETECTION using
Python. Python consists of some very innovative libraries such as opencv
which help us to build the project to develope computer vision applications.
FLOW CHART
CODE
Step 1: Pre-Requisites
First, let’s go ahead and import the OpenCV library and load the Haar
Cascade model just like we did in the previous section. You can skip this
block of code if you already ran it previously:

Step 2: Access the Webcam


Now, we need to access our device’s camera to read a live stream of video
data. This can be done with the following code:

Notice that we have passed the parameter 0 to the VideoCapture() function.


This tells OpenCV to use the default camera on our device. If you have
multiple cameras attached to your device, you can change this parameter
value accordingly.

Step 3: Identifying Faces in the Video Stream


Now, let’s create a function to detect faces in the video stream and draw a
bounding box around them:
The detect_bounding_box function takes the video frame as input.

In this function, we are using the same codes as we did earlier to convert
the frame into grayscale before performing face detection.

Then, we are also detecting the face in this image using the same parameter
values for scaleFactor, minNeighbors, and minSize as we did previously.

Finally, we draw a green bounding box of thickness 4 around the frame.

Step 4: Creating a Loop for Real-Time Face Detection


Now, we need to create an indefinite while loop that will capture the video
frame from our webcam and apply the face detection function to it:

After running the above code, you should see a window called My Face
Detection Project appear on the screen:

The algorithm should track your face and create a green bounding box
around it regardless of where you move within the frame.
CODE FOR FACE DETECTION
OUTPUT:
CONCLUSION:
A face detection and recognition system would certainly speed up
the process of checking student attendance in comparison to other
biometrics authentication methods and in the right circumstances it
would be able to match their accuracy. Nowadays there are a wide
variety of software, whether it is a Face API like Microsoft’s or a
library like OpenCV, that makes face detection and recognition
accessible and reliable and is constantly improving. Each software
imposes various restrictions, such as the limited number of calls
you can make to Microsoft’s Face API. However, using more than
one software can reduce these restrictions and lead to better results.

You might also like