Coder Social home page Coder Social logo

pillarpond / face-recognizer-android Goto Github PK

View Code? Open in Web Editor NEW
286.0 20.0 145.0 181.6 MB

Reatime Face Recognizer on Android

License: Apache License 2.0

Java 24.26% CMake 0.57% C++ 73.76% C 1.42%
android tensorflow libsvm face-recognition facenet android-face-detection blazeface

face-recognizer-android's People

Contributors

pillarpond avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

face-recognizer-android's Issues

Build Error

Build command failed.

OS: Linux Mint 18

`Error while executing process /home/razer/Desktop/android-sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a --target tensorflow_demo}
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a
[1/1] Re-running CMake...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razer/Desktop/face-recognizer-android/app/.externalNativeBuild/cmake/debug/armeabi-v7a

ninja: error: manifest 'build.ninja' still dirty after 100 tries`

How to load .pb file for makeing a script in Python?

Hey pillarpond

I was making a python script to load the .pb file to do some checking. While simply loading it using a simple script in a tensorflow session the vectors generated is different from that being generated by android. I was wondering how would it possible to load it in python.

Will it work on chromebook

Hi,

I have been working on a project which needs realtime face recognition to unlock the app, I was wondering if your app can work with chromebook devices.

data&model

Hi, i use your files and it will working well on your trained class.when i use my own graph trained using facenet-davidsandberg code.if i use your data&model files for my graph it seems like my trained images are unknown. so please tell me how do you create your data,model and mtcnn files.

thanks in advance

Face Detection

This app detects the faces of real persons as well as faces of persons on the pictures. Is it possible to restrict this app to only detect/recognize the real person's face and discard the image/pictures?

Showing Unknown , also for added faces

I have tried adding 5 different photos of mine and tried to recognize but still it is showing unknoun 0.3 . and
How can i remove added faces ?

Thank you in advance .

Using Smaller TFlite file - jni.h file dose not belong

Hi Pillarpond

Thanks you very much for the repo the code works really well. The only issues was the size of the FaceNet model.

I have created a facenet.tflite model that working in another project i have made, but when i try use that model inside your project i get the follow.

As soon as it starts the prediction i get the following.

image

Do you have any ideas of what could be causing the issue or if I am doing something wrong.

Set Default Data

How can I set default data as I don't need any of these five names that you set as default I only want to recognize to faces that trained by me please help me.

Classifier does not work with non-square face size

When initializing the classifier using
classifier = Classifier.getInstance(getAssets(), height, width);
giving unequal width and height causes the app to crash when it tries to perform facial recognition. I was wondering why this occurs.

Usb camera

Im try to use a usb camera but when i set it to look for an external camera its doesnt find it. It list 3 0 is back 1 is front 2 is also front

MTCNN model files Conversion?

I think MTCNN has 3 nets and the facenet model file is in tensrflow format?
How did you convert the MTCNN model file to one tflite file?
Did you face any issue in converting facenet model into tflite?

What is the difference between the model and data file?

I wanted to get rid of the 5 famous people so I erased the contents of the data and label files. However it seems that the model file is also affected by training, because each time I train a new face the contents of the model file change. So how can I "reset" the model file so it does not contain any numbers/data related to the 5 famous people. Or is the model file not related to face recognition but rather face detection?

Thanks in advance.

Recognition Results

As the number of classes increases the match prob decreased. Like i register 10 people the results are perfect. But when it goes to 15 or more people the match prob results decreases. For 10 classes the average prob result is .67 for each. But for 15 or more the prob result reduces to 0.35 or less. How can i solve this.

Couldn't find "libjnilibsvm.so"

Hey guys.

I am trying to use this in my project, so I created a new Library in my project and moved the code over to run your facial recognition.

Everything works fine when I start your MainActivity.java. The overlays load and initial "Initializing" completes, and the Camera starts. However after "Initializing" completes, the app crashes and the error says "Couldn't find "libjnilibsvm.so""

Any assistance would be greatly appreciated.

image

OnTrackListener()?

Hi, thanks for your work, is there a tracking listener so when a user is identified i can do stuff ??

Object Tracker Graphic Overlay Missing

I implemented same code in my existing android project ,it worked properly for a while(days) but after few days the Overlay graphics is not getting displayed for -object recognizer.

Unable to train new faces on phone

Dear Pillarpond,

I followed your instruction to add new faces from pictures on phone and the app saying training, but after that it still couldn't recognize new faces, I even give it 20 faces. Any idea why this happen?

"Initializing..." when adding new people

Hi,

Whenever I try to add someone, for example a friend, I select 4 pics of him, I add him, the app keeps on "Initializing..." and nothing happens... :(

Could you please help?

Mathis

About the App

Heyy,
Im currently in final year of Engineering, went through your repo and we are developing a similar application. It would be great if you could guide us as to how you built the entire application. Any help from your side, will be appreciated. Any links, blogs, papers that could be refernced???
Thank You.

Not able to get Confidence and other Values present in recogizer class

Hey ! I'm not able to fetch the confidence and other values such as string title for person name. I want to display a cardview overlay as soon as the person is recognized, with the person's info and image on the card. but for this i need confidence and other values in the main activity. Any help would be much appreciated !

Application terminated when training new person

Thanks for sharing your project first.

I tested it with Galaxy S6

Face recognition and detection works well.

but when I added person and select image

App is just crashed..

I guess because of memory (checking Android Studio profiler)

스크린샷, 2019-08-01 15-43-57

Is there any way to reduce memory in the training process???

Can you explain a little on the image preparation for the Face Detection part?

First, a BIG thank you for sharing the codes. It works perfectly in my phone.

Here i would like to ask about the Face Detection part, on how to 'prepare the bitmap' to the stage
List<RectF> faces = blazeFace.detect(bitmap); in the Recognizer.java

I have personally setup with CameraX (instead of Camera2), with Front Camera configuration.

...
imageAnalysis.setAnalyzer(executor, new ImageAnalysis.Analyzer() {
            @Override
            public void analyze(@NonNull ImageProxy image) {
                int rotationDegrees = image.getImageInfo().getRotationDegrees();
                @SuppressLint("UnsafeExperimentalUsageError") Bitmap bm = toBitmap(image.getImage());
                Bitmap bm2 = RotateBitmap(bm, rotationDegrees);
                Bitmap bm3 = createFlippedBitmap(bm2, true, false); //<-------- after rotation and flip

                //TODO: use blazeFace to detect bm3

                image.close();
           }
});

When i am using
List<RectF> faces = blazeFace.detect(bitmap);
i am always getting 0 faces.

Back to your original codes:
image
When i try to view the size of the bitmap, it is always 128 x 128. Isn't it supposed to be the raw frame image from camera? (eg: 720x1280)

What has happened since the line of
final Image image = reader.acquireLatestImage(); inside the function
public void onImageAvailable(final ImageReader reader)

Appreciate if you can shed some lights.

build error relative CMakerlists.txt

Hi,
I just download your source code and build it on AS v3.3.0
but i meet gradle sync issue.it point to CMakerlists.txt
but system don't have the detail error description.
do you have any idea for this ?

thank you!

i am not able to get confidence value through log.i

in recognizer.java how can i use or see the confidence value, if I'm not wrong the confidence value is the float value which is displayed under frame in the output screen.
I just want to add that if confidence is greater than 0.6 than email notification should trigger.please help

No implementation found

Everytime the app starts it automatically crashed .
The Error :
java.lang.UnsatisfiedLinkError: No implementation found for void

how can I fix this I want to try this application in my phone.

use another model

Hi, your work is amazing!
But may I ask how did you generate the facenet.pb file, or just have it copied from the FaceNet project?
Can I use another .pb model I trained instead?

Use Front Camera

Hi,

When using front camera, the tracking goes opposite direction.
Where to change to make this right?

Thanks.

How to train SVM model by Python?

Hi there. I want to use your model for my management application. I want to train SVM in server-side and push model to Android application, but the results is very poor. Can you explain the process to training data?

How many people can this handle?

Can this handle about 5000 faces in a database?
What speeds can be expected from them.

Also are 4 images essential? or can we do with just one image for training?

Choosing images from Camera for training

E/AndroidRuntime: FATAL EXCEPTION: inference

java.lang.IllegalArgumentException: DataType error: cannot resolve DataType of java.nio.ByteBufferAsFloatBuffer
    at org.tensorflow.lite.Tensor.dataTypeOf(Tensor.java:170)
    at org.tensorflow.lite.Tensor.throwExceptionIfTypeIsIncompatible(Tensor.java:230)
    at org.tensorflow.lite.Tensor.copyTo(Tensor.java:116)
    at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:157)
    at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:250)
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.