0% found this document useful (0 votes)
98 views28 pages

Minor Project1

This 3 sentence summary provides the key details about the document: The document outlines a minor project presentation created by Faraz Khan (enrollment number 1025502019) in the 5th semester of the BCA department. It discusses implementing face recognition using Python, OpenCV, and NumPy by detecting faces, collecting training data, training a model, and testing recognition on new images to identify users. The project aims to demonstrate how face recognition works and its algorithm and machine learning applications.

Uploaded by

serious reviews
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)
98 views28 pages

Minor Project1

This 3 sentence summary provides the key details about the document: The document outlines a minor project presentation created by Faraz Khan (enrollment number 1025502019) in the 5th semester of the BCA department. It discusses implementing face recognition using Python, OpenCV, and NumPy by detecting faces, collecting training data, training a model, and testing recognition on new images to identify users. The project aims to demonstrate how face recognition works and its algorithm and machine learning applications.

Uploaded by

serious reviews
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/ 28

Subject Name: Minor project presentation

Department: BCA
Created By: FARAZ KHAN
Enrollment No.: 1025502019
Class: 5TH SEM

JIMS Engineering Management Technical Campus


48/4, Knowledge Park – III, Greater Noida - 201308
(Affiliated to Guru Gobind Singh Indraprastha University, New Delhi
Approved by AICTE
ISO 9001:2018 Quality Certified
Subject: Minor project presentation
Topic: Face Recognition
Contents

1. Introduction
2. Objective
3. Methodology
4. Hardware and Software requirements
5. Conclusion
6. References

3
INTRODUCTION

4
Contd.
• This project provides the implementation of
Face Recognition which is written by the help
of Python language

• OpenCV library is used to implement all the


face detection and image reading commands,
numpy is used here to calculate the values for
proper evaluation.

5
▰ Face recognition is a computer technology being
used in a variety of applications that identifies
human faces in digital images. Face recognition
also refers to the psychological process by which
humans locate and attend to faces in a visual scene.
▰ Face recognition systems work by capturing an
incoming image from a camera device in a two-
dimensional or three-dimensional way depending
on the characteristics of the device.
About Opencv

▰ OpenCV (Open Source Computer Vision Library)


is a library of programming functions mainly
aimed at real-time computer vision.
▰ OpenCV is a great tool for image processing and
performing computer vision tasks. It is an open-
source library that can be used to perform tasks like
face detection, objection tracking, landmark
detection, and much more.
About NumPy

• NumPy is a general-purpose array-processing


package. It provides a high-performance
multidimensional array object, and tools for
working with these arrays.
• It adds powerful data structures to Python that
guarantee efficient calculations with arrays and
matrices and it supplies an enormous library of
high-level mathematical functions that operate on
these arrays and matrices.
OBJECTIVE

9
• The objective of this project is to provide the
implementation of face recognition

• This project is chosen so that everyone gets to


know how face recognition works and how to
implement it. During These Times of Technology
and advancement of our generation it is really
important to learn some basics algorithm and
usages of machine learning and AI.
• One can easily detect face and train machines to
detect faces via this implementation 10
METHODOLOGY

11
References
• In this face recognition code , you can detect faces
by just sitting in front of your pc’s webcam
surrounded by appropriate lightning and your face
will be detected easily . There are however multiple
scenarios which will determine the output as per the
condition.

• There are multiple steps which have been followed


to ensure the algorithm works correctly.

12
PROCESSES

Step #1: Install Libraries


First, you should install the required libraries,
OpenCV, and NumPy. You can install it easily
through:
“pip install opencv-python”
For installing NumPy in your system, use the same
command as above and replace ‘opencv-python’ with
‘numpy’:
pip install numpy 13
CONTD.

• Now, you must configure your camera and connect


it to your system. The camera should work properly
to avoid any issues in face detection.
• Before our camera recognizes us, it first has to
detect faces. We’ll use the Haar Cascade classifier
for face detection. It is primarily an object detection
method where you train a cascade function through
negative and positive images, after which it
becomes able to detect objects in other photos.
CONTD

This is the code


FaceCascade=
cv2.CascadeClassifier(‘haarcascade_frontalface_defa
ult.xml’)
Cap = cv2.VideoCapture(0)
cap.set (3,640) # set Width
cap.set (4,480) # set Height
CONTD

Step #3: Gather Data


• Now that your model can identify faces, you can
train it so it would start recognizing whose face is
in the picture. To do that, you must provide it with
multiple photos of the faces you want it to
remember.
• After collecting the necessary images, add IDs for
every person, so the model knows what face to
associate with what ID.
CONTD

Step #4: Train


• After creating the dataset of the person’s images,
you’d have to train the model. You’d feed the
pictures to your OpenCV recognizer, and it will
create a file named ‘trainer.yml’ in the end.
• In this stage, you only have to provide the model
with images and their IDs so the model can get
familiar with the ID of every image. After we
finish training the model, we can test it.
Step#5: Start Recognition
Now that you have trained the model, we can start
testing the model. In this section, we have added
names to the IDs so the model can display the names
of the respective users it recognizes.
The model doesn’t recognize a person. It predicts
whether the face it detects matches to the face present
in its database. Our model displays a percentage of
how much the face matches the face present in its
database.
Fig- Here the face is recognized that
it is of user’s

19
Fig- here this is a different
scenario in which we haven’t
trained this face but still face is
recognized

20
HARDWARE and SOFTWARE
REQUIREMENTS

21
• Python
(Any version, although python3+ versions would be
better)

• OpenCv library of python


(Install it using pip command “pip install opencv-
python”)

• NumPy library of python


(Install it using pip command “pip install numpy”)
22
• Operating system:
Linux- Ubuntu 16.04 to 17.10 or Windows 7 to 10

• RAM
2 GB (4 GB preferable)

23
CONCLUSION

24
• Face recognition is a powerful tool that is becoming
more and more acceptable globally. FRT
demonstrates rapid growth and offers a variety of
useful features applicable in all spheres of life.
• In recent years, the technology has been raising
questions mainly due to its error rates. However, the
mere existence of false results does not mean that
facial recognition technology has fundamental
flaws. Instead, it emphasizes the importance of
following the recommended practices when
implementing it, such as setting reasonable
similarity thresholds to suit a particular case.25
REFERENCES

26
• Python 3.10.0 documentation (2021), https://docs.python.org/3/

• Python(programming language)
(2021)https://en.wikipedia.org/wiki/Python_(programming_language

• Learn python programing(2021),https://www.programiz.com/python-


programming

• Face
recognition(2021),https://www.tutorialspoint.com/python/python_face
_recog.htm
• NumPy(2021),https://numpy.org/

• NumPy(2021),https://cs231n.github.io/python-numpy-tutorial/
27
Thank You !!

You might also like