All Projects → gv22ga → Dlib Face Recognition Android

gv22ga / Dlib Face Recognition Android

Licence: mit
Android app to demo dlib face recognition

Projects that are alternatives of or similar to Dlib Face Recognition Android

Face-Recognition-Attendance-System
A simple python script that recognises faces and mark attendance for the recognised faces in an excel sheet.
Stars: ✭ 57 (-50.43%)
Mutual labels:  face-recognition, dlib
Awesome Face Detection
Compare with various detectors - s3fd, dlib, ocv, ocv-dnn, mtcnn-pytorch, face_recognition
Stars: ✭ 106 (-7.83%)
Mutual labels:  face-recognition, dlib
face-rec-tools
Media library face recognition tools
Stars: ✭ 14 (-87.83%)
Mutual labels:  face-recognition, dlib
Attendance Using Face
Face-recognition using Siamese network
Stars: ✭ 174 (+51.3%)
Mutual labels:  face-recognition, dlib
Libfaceid
libfaceid is a research framework for prototyping of face recognition solutions. It seamlessly integrates multiple detection, recognition and liveness models w/ speech synthesis and speech recognition.
Stars: ✭ 354 (+207.83%)
Mutual labels:  face-recognition, dlib
Facerecognition
Nextcloud app that implement a basic facial recognition system.
Stars: ✭ 226 (+96.52%)
Mutual labels:  face-recognition, dlib
avatar-facial-landmark-detection
A method about optimizing the facial landmark detection based on Kalman Filter, Optical Flow and Dlib
Stars: ✭ 87 (-24.35%)
Mutual labels:  face-recognition, dlib
Face recognition py
基于OpenCV的视频人脸识别
Stars: ✭ 215 (+86.96%)
Mutual labels:  face-recognition, dlib
Get Me Through
A Free, Offline, Real-Time, Open-source web-app to assist organisers of any event in allowing only authorised/invited people using Face-Recognition Technology or QR Code.
Stars: ✭ 255 (+121.74%)
Mutual labels:  face-recognition, dlib
ofFaceRecognition
simple example face recognition with deep metric learning to dlib
Stars: ✭ 20 (-82.61%)
Mutual labels:  face-recognition, dlib
T System
the moving objects tracking system via two axis camera motion (and as optionally n joint robotic arm) for raspberry pi distributions
Stars: ✭ 17 (-85.22%)
Mutual labels:  face-recognition, dlib
Dlib face recognition from camera
Detect and recognize the faces from camera / 调用摄像头进行人脸识别,支持多张人脸同时识别
Stars: ✭ 719 (+525.22%)
Mutual labels:  face-recognition, dlib
facenet-darknet-inference
Face recognition using facenet
Stars: ✭ 29 (-74.78%)
Mutual labels:  face-recognition, dlib
Go Face
🔍 Face recognition with Go
Stars: ✭ 650 (+465.22%)
Mutual labels:  face-recognition, dlib
Deepface
A Lightweight Deep Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion and Race) Framework for Python
Stars: ✭ 1,150 (+900%)
Mutual labels:  face-recognition, dlib
Face recognition crop
Multi-view face recognition, face cropping and saving the cropped faces as new images on videos to create a multi-view face recognition database.
Stars: ✭ 98 (-14.78%)
Mutual labels:  face-recognition
Resnet Face Pytorch
Training a ResNet on UMDFaces for face recognition
Stars: ✭ 107 (-6.96%)
Mutual labels:  face-recognition
Jnitrace Engine
Engine used by jnitrace to intercept JNI API calls.
Stars: ✭ 94 (-18.26%)
Mutual labels:  jni
Pyseeta
python api for SeetaFaceEngine(https://github.com/seetaface/SeetaFaceEngine.git)
Stars: ✭ 93 (-19.13%)
Mutual labels:  face-recognition
Deepface
Face analysis mainly based on Caffe. At this time, face analysis tasks like detection, alignment and recognition have been done.
Stars: ✭ 1,465 (+1173.91%)
Mutual labels:  face-recognition

dlib-face-recognition-android

Recognize faces in android using dlib state-of-the-art face recognition model based on deep learning. The model has an accuracy of 99.13% on the LFW benchmark.

App

Face recognition is very accurate but it takes approximately 6 seconds on a Redmi4 with Snapdragon 435 and Android 7.1.

Usage

git clone --recursive https://github.com/gv22ga/dlib-face-recognition-android.git

Now you can directly open the dlib-face-recognition-app in android studio

Build JNI (Optional)

First get the required libraries

./envsetup

To build native code and copy to android studio's project manually

cd [dlib-face-recognition-android]
ndk-build -j 2
cp -r libs/* dlib-face-recognition-app/dlib/src/main/jniLibs

Please see dlib-android for more details

Dlib 19.9

This project uses dlib 19.9. Due to some c++11 issues, I had problem compiling dlib 19.9 with opencv. So I made some small changes in dlib/dlib/serialize.h, dlib/dlib/dnn/layers.h, dlib/dlib/geometry/rectangle.h, dlib/dlib/image_transforms/interpolation.h, dlib/dlib/dnn/loss.h, dlib/dlib/statistics/running_gradient.h and dlib/dlib/global_optimization/global_function_search.cpp files in dlib library.

Sample code

// recognize person
FaceRec mFaceRec = new FaceRec(Constants.getDLibDirectoryPath());
List<VisionDetRet> results = mFaceRec.recognize(image_bitmap);
for(VisionDetRet n:results) {
    Log.d(TAG, n.getLabel()); // prints the name of recognized person
}

// add person
// add the person image to dlib_rec_example/images directory with name `[PersonName].jpg`
mFaceRec.train()

Image Quality

You can change the parameters INPUT_SIZE in MainActivity.java and MAX_IMAGE_SIZE in AddPerson.java if recognition is not working accurately.

Todos

This app currently uses HOG based face detector. This detector fails to detect small faces and is not very accurate. Instead we can use CNN based face detector, which is very accurate but will take much more time.

License

MIT

Thanks

Many thanks to tzutalin for dlib-android

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].