Professional Documents
Culture Documents
Face Recognition
Face Recognition
Group Number: X
GROUP
MEMBERS: -
Agenda
In Face recognition process, it can pick someone's face
out of a crowd, extract the face from the rest of the
scene and compare it to a database of stored images.
Positive identification of individuals is a very basic
societal requirement. In small tribes and villages,
everyone knew and recognized everyone else. You
could easily detect a stranger or identify a potential
breach of security. In today's larger, more complex
society, it isn't that simple.
Making Software
The system goes through a series of steps to verify the
identity of an individual.
def img_to_encoding ()
{
input facemodel;
float img_data;
input shape (x, y, z);
face_recogmodel(shape);
{
conv shape;
img_data = shape;
}
return img_data;
}
Recognising a Face
def encoding_to_flag ()
{
int flag, n;
load database_img;
input facemodel;
input shape (x, y, z);
input img_data;
n=cmp(img_data, database_img);
if (n==0)
flag = 1;
else
flag =0;
return flag;
}
User Experience
Let us take an example for better understanding of the
user experience of the face recognition software.
Installing Software
Install the face_recognition module.
Import Modules
Next, we import the required modules.
import PIL.Image
import PIL.ImageDraw
import requests
from io import BytesIO
from IPython.display import
display
import face_recognition
import img_to_encoding
import encoding_to_flag
Load Image
Next, we load a picture.
Identify Faces
Once we have loaded the face, let us have a look at
parts of the face_recognition module.
Output
1 face is found in this photograph. This means, the
algorithm found just one face in the image. Let us have
a look at the image and the face identified.
Face Encodings
It is simply a face for us. But, for our algorithm, it is
array of RGB values of different encodings — that
matches a pattern that the it has learnt from the data
samples we provided to it.
This gives us the long list of the curves for each of the
individual features each having its own encoding.
[{
'chin': [(46, 47), (45, 54), (44, 62), (44, 69), (44, 77),
(46, 84), (49, 91), (54, 95), (61, 97), (68, 97), (76, 95),
(84, 91), (90, 87), (94, 81), (97, 75), (99, 68), (101,
60)],
'left_eyebrow': [(51, 42), (54, 39), (58, 39), (63, 40),
(67, 42)],
'right_eyebrow': [(75, 44), (80, 44), (86, 44), (90, 47),
(93, 51)],
'nose_bridge': [(70, 48), (68, 52), (67, 56), (66, 60)],
'nose_tip': [(60, 64), (62, 65), (65, 67), (68, 66), (71,
66)],
'left_eye': [(55, 47), (57, 45), (61, 46), (63, 48), (60,
48), (57, 48)],
'right_eye': [(77, 51), (80, 50), (84, 51), (86, 54), (83,
54), (79, 53)],
'top_lip': [(54, 75), (58, 72), (61, 72), (64, 73), (66,
73), (70, 75), (73, 80), (71, 79), (66, 75), (63, 75), (61,
74), (56, 75)],
'bottom_lip': [(73, 80), (68, 81), (64, 81), (62, 80),
(60, 80), (57, 78), (54, 75), (56, 75), (60, 77), (63, 78),
(65, 78), (71, 79)]
}]
Conclusion
Face recognition is still a challenging problem in the
field of computer vision. It has received a great deal of
attention over the past years because of its several
applications in various domains. Although there is
strong research effort in this area, face recognition
systems are far from ideal to perform adequately in all
situations form real world. Paper presented a brief
survey of issues methods and applications in area of
face recognition. There is much work to be done in
order to realise methods that reflect how humans
recognise faces and optimally make use of the temporal
evolution of the appearance of the face for recognition.