[go: up one dir, main page]

0% found this document useful (0 votes)
60 views5 pages

Face Detection Python

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 5

PROJECT REPORT

FACE DETECTION
APPLICATION
Digital Signal Processing (DSP)

Group members:
1.Prerit Jain 2020UEE1185
2.Gaurav Joshi 2020UEE1211
3.Aadish Jain 2020UEE1204

Submitted to:
Dr. Hemant Meena
FLOWCHART FOR THE FACE RECOGNITION ALGORITHM
CONCEPT AND APPLICATION INVOLVED

Definition:

Face detection is a computer technology that involves detecting human faces in digital images or video
frames. The process involves the use of computer algorithms that analyze the image or video data to
identify and locate facial features such as eyes, nose, and mouth.

Concepts involved in face detection:

OpenCV: OpenCV is a popular open-source computer vision library that provides various image processing
and machine learning algorithms for face detection. OpenCV also provides pre -trained models that can
be used to quickly build a face detection application.

Haar Cascades: As mentioned earlier, Haar cascades are a popular feature detection algorithm used for
object recognition, including face detection. OpenCV provides built-in support for Haar cascades, making
it easy to implement a face detection application using Python.

Applications:

1.Security and surveillance: Face detection is commonly used in security and surveillance systems to
detect and track faces in real-time, helping to identify and track people of interest.

2.Biometrics: Face detection is a key component of biometric systems that use facial recognition
technology to identify individuals based on their unique facial features.

3.Photography: Face detection is commonly used in digital cameras and smartphones to detect and
focus on faces in photographs, helping to improve the quality of the image.

4.Social media: Face detection is used in social media applications to automatically tag individuals in
photos and videos.
How DSP is involved in FACE DETECTION

Image preprocessing: DSP techniques such as image filtering and normalization can be used to
preprocess digital images to remove noise, enhance contrast, and normalize pixel intensities. This can
help improve the accuracy and robustness of face detection algorithms.

Feature extraction: DSP techniques such as edge detection and texture analysis can be used to extract
features such as facial edges, contours, and textures. These features can be used to identify facial
landmarks such as eyes, nose, and mouth, which are essential for face detection.

Pattern recognition: DSP techniques can be used to recognize patterns in digital signals such as facial
features. These techniques can be used to train models that can accurately detect faces in digital images
and videos.

Real-time processing: DSP techniques can be used to optimize face detection algorithms for real-time
processing in applications such as security and surveillance systems. This involves reducing processing
time and improving algorithm efficiency to detect faces in real-time video streams.
CODE FOR FACE RECOGNITION ALGORITHM
import cv2

face_cap=cv2.CascadeClassifier("C:/Users/jainp/AppData/Local/Programs/Python/Python311/Lib/sit
e-packages/cv2/data/haarcascade_frontalface_default.xml")

video_cap=cv2.VideoCapture(0)

while True:

ret, video_data= video_cap.read()

col=cv2.cvtColor(video_data,cv2.COLOR_BGR2GRAY)

faces=face_cap.detectMultiScale(

col,

scaleFactor=1.1,

minNeighbors=5,

minSize=(30,30),

flags=cv2.CASCADE_SCALE_IMAGE

for(x,y,w,h)in faces :

cv2.rectangle( video_data,(x,y),(x+w,y+h),(0,255,0),2)

cv2.imshow("video_live",video_data)

if cv2.waitKey(10)==ord("a"):

break

video_cap.release()

You might also like