• Stars
    star
    276
  • Rank 149,319 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple implementation of facial recognition using facenets for humans 🧔 🔍

Facial Recognition 🧔 🔍

This code helps in facial recognition using facenets (https://arxiv.org/pdf/1503.03832.pdf). The concept of facenets was originally presented in a research paper. The main concepts talked about triplet loss function to compare images of different person. This concept uses inception network which has been taken from source and fr_utils.py is taken from deeplearning.ai for reference. I have added several functionalities of my own for providing stability and better detection.

Code Requirements 🦄

You can install Conda for python which resolves all the dependencies for machine learning.

pip install requirements.txt

Description 🕵️‍♂️

A facial recognition system is a technology capable of identifying or verifying a person from a digital image or a video frame from a video source. There are multiples methods in which facial recognition systems work, but in general, they work by comparing selected facial features from given image with faces within a database.

Functionalities added 🧟

  1. Detecting face only when your eyes are opened. (Security measure)
  2. Using face align functionality from dlib to predict effectively while live streaming.

Python Implementation 👨‍🔬

  1. Network Used- Inception Network
  2. Original Paper - Facenet by Google

If you face any problem, kindly raise an issue

File Organization 🗄️

├── Facial-Recognition-using-Facenet (Current Directory)
    ├── models : Saved Models
        ├── face-rec_Google.h5 : Facenet Model 
        └── shape_predictor_68_face_landmarks.dat : Facial Keypoints Model
    ├── utils : Utils Folder
        ├── fr_utils.py 
        └── inception_blocks_v2.py 
    ├── create_face.py : Store the faces for module
    ├── rec-feat.py - Main Application
    ├── Train-inception.py : Model Trainer
    ├── LICENSE
    ├── requirements.txt
    └── readme.md
        

Setup 🖥️

  1. If you want to train the network , run Train-inception.py, however you don't need to do that since I have already trained the model and saved it as face-rec_Google.h5 file which gets loaded at runtime.
  2. Now you need to have images in your database. The code check /images folder for that. You can either paste your pictures there or you can click it using web cam. For doing that, run create-face.py the images get stored in /incept folder. You have to manually paste them in /images folder
  3. Run rec-feat.py for running the application.

Execution 🐉

python3 rec-feat.py

Results 📊

Made with ❤️ and 🦙 by Akshay Bahadur

References 🔱

More Repositories

1

Emojinator

A simple emoji classifier for humans. 🖖
Python
501
star
2

Autopilot

A simple self-driving car module for humans 🚘 🛣️
Python
488
star
3

Drowsiness_Detection

A simple Drowsiness Detection module for humans. 😴 🚫 🚗
Jupyter Notebook
480
star
4

HandMovementTracking

A simple hand movement tracking module for humans ✍️
Python
285
star
5

QuickDraw

A simple implementation of Google's Quick, Draw Project for humans. 🖌️ 🖼️
Python
222
star
6

Socratic

A simple Mathematical utility for Humans 🦉
Python
175
star
7

Digit-Recognizer

A Machine Learning classifier for recognizing the digits for humans 🎰
Python
158
star
8

BreastCancer_Classification

Machine learning classifier for cancer tissues 🔬
Python
72
star
9

GymLytics

Visual Analytics of different exercises for humans 🏋️
Python
68
star
10

Alphabet-Recognition-EMNIST

Alphabet recognition using EMNIST dataset for humans ⚓
Python
68
star
11

Devanagiri-Recognizer

A Hindi Alphabet classifier for humans 🇮🇳
Python
60
star
12

Breast-Cancer-Deep-Learning

Breast Cancer classification using deep neural network 🔬
Python
35
star
13

DigiEncoder

A digit autoencoder for humans 🧬
Python
35
star
14

Smart_Mirror

C
26
star
15

Sort

Implementation of Bubble Sort, Selection Sort, Insertion Sort, Merge Sort & Quick Sort for humans 〽️
Java
26
star
16

FaceEncoder

A face autoencoder for humans 👨‍🎤
Python
24
star
17

Explore-ML-Hyderabad-2019

My session at Google Explore ML, Hyderabad 2019 for humans
Jupyter Notebook
20
star
18

keras-secure-image

Add-on library for Keras to train on encrypted images for humans 🛡️
Python
18
star
19

Breast-Cancer-Neural-Networks

Classifying malignant and benign tumors using Neural Networks 🔬
MATLAB
17
star
20

Guitar-Learner

Guitar chord detection and classifier for humans 🎸
Python
17
star
21

3D-Object-Tracking

A simple 3D Object Tracking module for humans 🍺
Python
17
star
22

Emancipation-of-Leetcode

My solutions for leetcode questions for humans.
Java
15
star
23

Automated-Selenium

Python automation for humans 🎯
Python
12
star
24

CrimeRate_Prediction_ML

A simple Time Series Analysis module for humans ⏰
Python
12
star
25

ObjectTracking

An object tracking for humans 🔬
Python
12
star
26

IISc-Bangalore-2019

Material for my session at Indian Institute of Science, Bangalore 2019 for humans.
Jupyter Notebook
11
star
27

FaceOrienter

A simple face orienter for humans.
Python
10
star
28

CricketLytics

Cricket analytics for humans 🏏
Python
10
star
29

Google-DSC-TTT-2019

My session details for DSC Train-the-trainer, September 27, 2019 for humans
Jupyter Notebook
10
star
30

MathEw

A Mathematics helper for humans 🦖
Python
10
star
31

ODSC-Boston-2019

My Webinar at ODSC, Boston 2019 for humans
Jupyter Notebook
10
star
32

Emancipation-of-CS229

My machine learning handwritten notes for humans
9
star
33

Rock-Paper-Scissors-Lizard-Spock

The classic game of Rock-Paper-Scissors, with a twist for humans. 🗿 📝 ✂️ 🦎 🖖
Python
9
star
34

ImageSegmentation

An image segmentation module for humans 🛹
Python
8
star
35

FaceDetection

A face detection module for humans 🧔‍♂️
Python
8
star
36

Ascinator

Convert RGB Image to ASCII format for humans 📇
Python
8
star
37

Block-Chain

A module to understand the working of blockchains for humans 🔗
Python
7
star
38

ODSC-India-2019

My session at Open Data Science Conference, Bangalore 2019 for humans
Jupyter Notebook
7
star
39

BLOB

This repository contains all the large files which are referenced across my repos and slides for humans ⛰️
6
star
40

Google-DevFest-Kolkata-2019

My session at Google-DevFest, Kolkata 2019 for humans
Jupyter Notebook
6
star
41

DHS-2019

My session at Data Hack Summit, 2019 for humans
6
star
42

Analytics-Vidhya-Webinar-2020

My session at Analytics Vidhya Webinar for humans
6
star
43

ML_Poker

Poker hand prediction using machine learning
MATLAB
6
star
44

Emancipitaion-of-Apache-Spark

My experiments with Apache Spark for Humans ⭐
Java
6
star
45

fashion-MNIST

A classifier based on fashion MNIST dataset for humans 🧥
Python
6
star
46

Spam-Classifier

Spam classifier using text analysis 📈
Jupyter Notebook
5
star
47

MachineLearning-CourseEra

Machine Learning Course for humans 📜
MATLAB
5
star
48

Raining-Emoji

A wrapper for emoji rainfall for humans 🌧️ 🐶 🐵 🦁 🐷 🐨
Python
5
star
49

ISODS-Young-Data-Scientist-Award-2020

Contains the link and article for The Most Influential Young Data Scientist of the Year 2019 by ISODS for humans
5
star
50

TF-Everywhere-2021

My session atTensorFlow Everywhere India for humans
4
star
51

PyData-Pune-2019

My Session at PyData, Pune 2019 for humans
Jupyter Notebook
4
star
52

iCoin

A simple blockchain currency module for humans 🪙
Python
4
star
53

Rat_In_A_Maze

Rat in a Maze problem for humans 🐭
Java
4
star
54

NARI-Native-Application-for-Rescue-India

A safety application module for women 👷‍♀️ 🦺
Java
4
star
55

Search

Linear Search, Binary Search, Binary Search with Recursion for humans 🌪️
Java
4
star
56

KaggleDays-Mumbai-19

My session at Kaggle Days - Mumbai, 2019 for humans
4
star
57

akshaybahadur21

akshaybahadur21 for humans 👨‍🚀
3
star
58

Rectangle_Intersect

A module that gives the overlap area of two rectangles intersection for humans 🥡
Java
3
star
59

TFUG-Hyderabad-2020

My session at TensorFlow User Group - Hyderabad 2020 for humans
3
star
60

SIT-DL-Workshop-2019

Notebooks for my DL workshop at Symbiosis Institute of Technology, Pune
Jupyter Notebook
3
star
61

Emancipation-of-Python

My experiments with Python for humans
Jupyter Notebook
3
star
62

GDG-Chennai-2020

My session at Google Developers Group in Chennai for humans
2
star
63

DevSangamam-2020

My session at DevSangam - Chennai for humans
2
star
64

Google-DevFest-GNR-2019

My session at Google-DevFest, Gandhinagar 2019 for humans
2
star
65

Google-Experts-Summit-California-2019

My session at Google Experts Summit, California 2019 for humans
2
star
66

SCOURSE

A smart course recommender for CMU students 🔍 🎓
Python
2
star
67

GirlScript-2020

Details for the guest lecture at GirlScript COVID Coding Program for humans
2
star
68

tf-roadshow-blore-2019

Details for my session at Tensorflow Roadshow, Bangalore 2019 for humans.
2
star
69

Monash-TTN-2020

My session at Tech Talk Nights at Monash University for humans
2
star
70

GradientDescentExample

A gradient descent module for humans 🏔️
MATLAB
2
star
71

bigDL-Movie-Rec

A simple movie recommendation using. bigDL for humans 🎬
Jupyter Notebook
2
star
72

PyCon-India-2020

My session at PyCon - 2020 for humans
2
star
73

TFUG-Mysore-2020

My session at TensorFlow User Group - Chennai for humans
2
star
74

Ensemblers-Movie-Recommendation

Jupyter Notebook
2
star
75

SpringBoot-Docker

A sample application using Spring Boot 🧷
Java
2
star
76

ISODS-2020

My session at The International Society of Data Scientists 2020 for humans
1
star
77

KaggleDays-Surat-20

1
star
78

Pie-and-AI-2020

My session at Pie & AI - Mumbai for humans
1
star
79

Fierce-Embedded-Innovation-2020

Python
1
star
80

Emancipation-of-NLP

My notes and experiments with Natural Language Processing for humans
Jupyter Notebook
1
star
81

Foo.bar

Foo bar challenge for humans 🐰
1
star
82

ML-Fairness-101

Identifying fairness issues in AI-enabled systems in a credit scoring scenario for humans
Jupyter Notebook
1
star
83

Prometheus_Monitoring

A module for Prometheus monitoring for humans 👾
Java
1
star
84

Symbiosis-Alumni-Lecture-2020

My session at Symbiosis Alumni Meet - Pune for humans
1
star
85

TFUG-India-Summit-2020

My session at TensorFlow User Group India Summit for humans
1
star
86

Techtonic-2K20

My Keynote at Techtonic - 2K20 (Sinhgad Institute of Technology,Lonavala)
1
star
87

ISODS-2019

My session at The International Society of Data Scientists 2019 for humans
1
star
88

DSC-GITAM-2020

My session details for DSC GITAM, April 25, 2020 for humans
1
star
89

PyData-Global-2020

My session at PyData Global for humans
1
star