Face Recognition Web App Tutorial: by Fatih Cagatay Akyon

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

Face Recognition Web App Tutorial

by Fatih Cagatay Akyon

1
Web App Preview
• Live demo URL: https://face-recognition-api-flask.herokuapp.com/

2
Who Am I

Fatih Cagatay Akyon

Machine Learning
Deep Learning
10+ IEEE papers linkedin.com/fcakyon
Computer Vision
5 patents Object Detection
fcakyon@gmail.com
Radar Signal Detection
Modulation Classification

3
Outline
• Facial feature extraction
• SVM, Naïve Bayes, Multi Layer Perceptron
• LOTR Dataset
• Local project structure
• Online project structure
• Pushing our app to Github
• Deploying our app to AWS via Heroku

4
Traditional face recognition
• Extract features

• Compare new face features with db

• Store them in a db

User A User B User C User D

5
Deep learning based facial embedding extraction
Paper url: https://www.cv-foundation.org/openaccess/content_cvpr_2015/app/1A_089.pdf

6
ML based face recognition

ML Based
FaceNet Classifier
Faces Embeddings Face Label
Naïve Bayes
Support Vector Machine
Multi Layer Perceptron

128x1
vector

7
Naïve Bayes

8
Support Vector Machine

9
Multi Layer Perceptron

Input 2nd Output


1st Layer Layer Layer
Embeddings Layer

128x1
vector Number 32 32 Number
of neuron neuron of
features classes

10
LOTR Dataset

11
Face detection/ Examples classes

Aragorn Gollum

Frodo Legolas

Gandalf Saruman

12
Independent test set
Local project structure

(http://127.0.0.1:3000/detect)
Sending post request on
(http://127.0.0.1:4000/) /detect method (http://127.0.0.1:3000/)

Face recognition Face detection app


app at port 4000 at port 3000
Receiving detected face cords
and probabilities as json

Applying face recognition


using pretrained model
on face detection regions

14

You might also like