Skip to content
项目

akshaybahadur21/Facial-Recognition-using-Facenet

在 GitHub 查看

关于

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

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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

📌 Cite Us

To cite this guide, use the below format:

@article{Facial-Recognition-using-Facenet,
author = {Bahadur, Akshay},
journal = {https://github.com/akshaybahadur21/Facial-Recognition-using-Facenet},
month = {01},
title = {{Facial-Recognition-using-Facenet}},
year = {2018}
}

References 🔱

探索相关项目

加载中…