All Projects → benwu95 → real-time-face-recognition

benwu95 / real-time-face-recognition

Licence: MIT license
Real Time Face Recognition using FaceNet and OpenCV

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to real-time-face-recognition

FaceRecog
Realtime Facial recognition system using Siamese neural network
Stars: ✭ 47 (+147.37%)
Mutual labels:  facenet, opencv-python
Obstacle-Detection-and-Path-Planning
Processing an Image to find obstacles and the minimum path between two similar objects using OpenCV.
Stars: ✭ 61 (+221.05%)
Mutual labels:  opencv-python
awesome-face-recognition
this repo include paper review, code in face recognition
Stars: ✭ 16 (-15.79%)
Mutual labels:  facenet
DeepFaceRecognition
Face Recognition with Transfer Learning
Stars: ✭ 16 (-15.79%)
Mutual labels:  facenet
Facenet
Face recognition using Tensorflow
Stars: ✭ 12,189 (+64052.63%)
Mutual labels:  facenet
OpenCV-Object-Tracking
Object Tracking Using OpenCV and Python Plus Comparing different Trackers
Stars: ✭ 32 (+68.42%)
Mutual labels:  opencv-python
clockon-clockoff-face-recognition
Face Recognize application. Using FaceNet and CoreML
Stars: ✭ 21 (+10.53%)
Mutual labels:  facenet
epic-awesome-gamer
🍷 Gracefully claim weekly free games and monthly content from Epic Store.
Stars: ✭ 600 (+3057.89%)
Mutual labels:  opencv-python
image-segmentation-auto-labels
A service to auto-generate masks for image segmentation
Stars: ✭ 22 (+15.79%)
Mutual labels:  opencv-python
Intrusion Detection
Whenever founds internet connectivity confirms is it you, if not log you off and send you image of intruder.
Stars: ✭ 24 (+26.32%)
Mutual labels:  opencv-python
visualize-voc-format-data
A simple utility programe to visualize pascal voc (format) dataset images with bounding boxes. Useful to check whether there is any error in forming annotation files.
Stars: ✭ 23 (+21.05%)
Mutual labels:  opencv-python
Openface
Face recognition with deep neural networks.
Stars: ✭ 14,249 (+74894.74%)
Mutual labels:  facenet
iterative-grabcut
This algorithm uses a rectangle made by the user to identify the foreground item. Then, the user can edit to add or remove objects to the foreground. Then, it removes the background and makes it transparent.
Stars: ✭ 35 (+84.21%)
Mutual labels:  opencv-python
Facenet-Caffe
facenet recognition and retrieve by using hnswlib and flask, convert tensorflow model to caffe
Stars: ✭ 30 (+57.89%)
Mutual labels:  facenet
CV
Computer Vision applications using #Python and #OpenCV
Stars: ✭ 19 (+0%)
Mutual labels:  opencv-python
compreface-javascript-sdk
JavaScript SDK for CompreFace - free and open-source face recognition system from Exadel
Stars: ✭ 19 (+0%)
Mutual labels:  facenet
camera-live-streaming
Camera Live Streaming with Flask and Open-CV
Stars: ✭ 69 (+263.16%)
Mutual labels:  opencv-python
Bitcamp-2019
Won the most innovative solution at Bitcamp 2019.🎖🎉
Stars: ✭ 15 (-21.05%)
Mutual labels:  opencv-python
opencv-python-tutorial
📖 OpenCV-Python image processing tutorial for beginners
Stars: ✭ 2,761 (+14431.58%)
Mutual labels:  opencv-python
VBT-Barbell-Tracker
A proof of concept app to optically track a barbell through its range of motion using OpenCV to give the lifter realtime feedback on concentric avg velocity, cutoff velocity, and displacement for a Velocity Based Training program.
Stars: ✭ 53 (+178.95%)
Mutual labels:  opencv-python

Real Time Face Recognition using FaceNet and OpenCV

This is a real time face recognition project based on FaceNet and OpenCV.

Compatibility

The code is tested using Tensorflow 1.3 with GPU support under Fedora 26 with Python 2.7 and Python 3.6.

Requirements

  • NumPy
  • SciPy
  • scikit-learn
  • Pillow
  • OpenCV-Python
  • TensorFlow

Pre-processing

The dataset structure

face_DB/raw
├── ID1
│     ├── ID1_001.jpg
│     ├── ID1_002.jpg
│     ├── ID1_003.jpg
│     ├── ID1_004.jpg
│     └── ID1_005.jpg
├── ID2
│     ├── ID2_001.jpg
│     ├── ID2_002.jpg
│     ├── ID2_003.jpg
│     ├── ID2_004.jpg
│     └── ID2_005.jpg
├── ID3
│     ├── ID3_001.jpg
...
...

Pre-trained models

Use the Pre-trained models from davidsandberg/facenet

Align the dataset

python align_dataset_mtcnn.py <raw_img_dir> <aligned_img_dir>

Example

python align_dataset_mtcnn.py Face_db/raw Face_db/align_160

Train a classifier

python classifier.py TRAIN <aligned_img_dir> <facenet_model_path> <classifier_path>

Example

python classifier.py TRAIN Face_db/align_160/ models/20170512-110547/20170512-110547.pb models/classifier/test_classifier.pkl

Run

python camera.py <mode> <facenet_model_path> <classifier_path> --interval=5 --minsize=80
  • mode
    • ONLY_DETECT: Only detects faces from the camera
    • ALL: Recognizes faces from the camera
  • interval: Frame interval of each face recognition event, default value is 5
  • minsize: Minimum size (height, width) of face in pixels, default value is 80

Example

python camera.py ALL models/20170512-110547/20170512-110547.pb models/classifier/test_classifier.pkl --interval=5 --minsize=80

Inspiration

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].