Professional Documents
Culture Documents
SOCIAL MEDIA AUTHENTICATION USING FACIAL RECOGNITION
SOCIAL MEDIA AUTHENTICATION USING FACIAL RECOGNITION
BATCH No : 06
REGISTER NUMBER NAME OF STUDENT NUMBER OF
MEETINGS WITH
GUIDE
17L31A0513 A.RAJEE PRIYA 02
17L31A0525 M.DINESH 01
17L31A0535 V.SOWMYA 03
17L31A0533 K.SUNIL 01
The proposed method for the authentication is highly efficient with respect to
authenticity of user. By using this method, only the authenticated user would
be able to get access to the account.
Different security and privacy models and techniques for authentication are used
over the social media web application. These techniques have limitations. In order
to minimize the security risk of authentication and validation , a methodology
called face detection and facial recognition is discussed. It provides the facility to
improve security and to avoid unauthorized access of social media webapp
accounts.
All the smart devices have a built in camera in the current technology world.
After authentication of the credentials like username and password provided
by user. The system requires user’s authorization via face detection by
the camera on his or her device.
The need of this proposed system is that every device should have a built
in camera.
Open CV
recognizer.py
Import face_recognition
import numpy as np
import cv2
import os
def Recognizer():
video = cv2.VideoCapture(0)
known_face_encodings = []
known_face_names = []
base_dir = os.path.dirname(os.path.abspath(__file__))
image_dir = os.path.join(base_dir, "static")
image_dir = os.path.join(image_dir, "profile_pics")
names = []
for root,dirs,files in os.walk(image_dir):
for file in files:
if file.endswith('jpg') or file.endswith('png'):
path = os.path.join(root, file)
img = face_recognition.load_image_file(path)
# label = file[:len(file)-4]
label = file
if label == 'default.jpg':
pass
else:
img_encoding = face_recognition.face_encodings(img)[0]
known_face_names.append(label)
26/12/2018
12/24/2018 11
known_face_names.append(label)
known_face_encodings.append(img_encoding)
face_locations = []
face_encodings = []
while True:
check, frame = video.read()
small_frame = cv2.resize(frame, (0,0), fx=0.5, fy= 0.5)
rgb_small_frame = small_frame[:,:,::-1]
face_locations = face_recognition.face_locations(rgb_small_frame)
face_encodings = face_recognition.face_encodings(rgb_small_frame, face_locations)
face_names = []
for face_encoding in face_encodings:
matches = face_recognition.compare_faces(known_face_encodings,
np.array(face_encoding), tolerance = 0.5)
face_distances =
face_recognition.face_distance(known_face_encodings,face_encoding)
best_match_index = np.argmin(face_distances)
if matches[best_match_index]:
name = known_face_names[best_match_index]
face_names.append(name)
if name not in names:
names.append(name)
26/12/2018
12/24/2018 12
for (top,right,bottom,left), name in zip(face_locations, face_names):
top*=2
right*=2
bottom*=2
left*=2
cv2.rectangle(frame, (left,top),(right,bottom), (0,255,0), 2)
cv2.imshow("Face Recognition Panel",frame)
if cv2.waitKey(5000):
break
video.release()
cv2.destroyAllWindows()
26/12/2018
12/24/2018 13
RESULTS
Home page
Home page
Registration page
26/12/2018 14
12/24/2018
Login page
26/12/2018
12/24/2018 15
Succesful authentication
after login
New post
26/12/2018
12/24/2018 16
Post is created
26/12/2018
12/24/2018 17
Updated post
26/12/2018
12/24/2018 18
Post is deleted
26/12/2018
12/24/2018 19
Structured Abstract
PURPOSE: The purpose of the project is to secure an individual social media accounts
OBJECTIVE: The objective of this project is to reduce unauthorized access
PRACTICAL IMPLICATIONS:
For example, If this project is implemented then huge number of applications can be
developed based on this.
Show how much % they completed in the form of a table.
DEPARTMENT OF CSE
100 0
100 0
100 0
100 0
100 0
0 0
0 0
Date
12/24/2018 20
Mapping of PO’s
Map with your project and mention the corresponding outcome. Here I given you as a reference
This paper includes different models used for the authentication of social
media account. Importance of security in authentication is described in paper.
Different security and privacy models and techniques for authentication are
used over the social media. These techniques have limitations. In order to
minimize the security risk of authentication and validation, a methodology
called face detection and facial recognition is discussed in this paper. It
provides the facility to improve security and to avoid unauthorized access of
social media accounts.
12/24/2018 22
Time Line