Open ramvdixit opened 4 years ago
Hi @ramvdixit
Did you fixed the issue? I am also going to start recognition in my app.
@UwaisWisitech
Nope. I moved on to implementing it a different way, I combined OpenCV, SVM with KNN and my own camera implementation derived from the OtaliaStudios CameraView library. I am still working on it, so would abstain from giving you advice yet.
But I would definitely tell you to try other engines - TensorFlow SVM, KNN, Caffe, etc. EigenFaces did not really work too well or give the accuracy that I needed.
Thanks @ramvdixit
@UwaisWisitech
Nope. I moved on to implementing it a different way, I combined OpenCV, SVM with KNN and my own camera implementation derived from the OtaliaStudios CameraView library. I am still working on it, so would abstain from giving you advice yet.
But I would definitely tell you to try other engines - TensorFlow SVM, KNN, Caffe, etc. EigenFaces did not really work too well or give the accuracy that I needed.
Did you got a better accuracy through different ML algorithms??
My best bet would be TensorFlow with SVM/KNN. It's quite satisfactory. I get a positive result almost all the time. Keep in mind that there are a bunch of variables you have to take into account - Distance of camera from face, angle of camera, available light, etc. I also would suggest you use frames from a live video feed rather than a single snap from the camera, experiment with a bunch of frames in a loop to get a positive result and break out of the loop when you get it.
My best bet would be TensorFlow with SVM/KNN. It's quite satisfactory. I get a positive result almost all the time. Keep in mind that there are a bunch of variables you have to take into account - Distance of camera from face, angle of camera, available light, etc. I also would suggest you use frames from a live video feed rather than a single snap from the camera, experiment with a bunch of frames in a loop to get a positive result and break out of the loop when you get it.
Okay got it! One random question Can the images in the training dataset be sent to localhost server?
You mean the processed files? sure you can. But why localhost? You either store it on a remote server or maintain them on the local device.
yes, i mean the the images stored (along with their labels) of training dataset. Just check on localhost then try on the remote server.
If you are opting to use TensorFlow with SVM, you dont need the images after the training is completed. Just the training dataset containing the vector classifications is enough, which you can store in a server or maintain it locally. My personal need was to have face recognition capability on the local device and have no dependency on a server, when there is no connectivity. So, yeah, sure you can store it anywhere you want.
If you are opting to use TensorFlow with SVM, you dont need the images after the training is completed. Just the training dataset containing the vector classifications is enough, which you can store in a server or maintain it locally. My personal need was to have face recognition capability on the local device and have no dependency on a server, when there is no connectivity. So, yeah, sure you can store it anywhere you want.
In this project is the training data being saved in SQLLite database??
Yes, I have a SQLCipher database that stores the class data.
@ramvdixit sir, are you got the success?
Could you please guide me. I'm done same as you done.
I move the bot code in different activity/fragment.
When I train the dataset it's working fine. But if I provide some other person image to recognition , It's fail. I spend lot of time for this task.
Could you please give me any reference link to implement as You Done.
Thanks Zala.
If you are opting to use TensorFlow with SVM, you dont need the images after the training is completed. Just the training dataset containing the vector classifications is enough, which you can store in a server or maintain it locally. My personal need was to have face recognition capability on the local device and have no dependency on a server, when there is no connectivity. So, yeah, sure you can store it anywhere you want.
In this project is the training data being saved in SQLLite database??
Please share your source code with us
Hi,
I am struggling from few days to recognize the face using facenet in Android application.
Here are the steps I have followed:- 1) Generated the Embeddings faces from the Python using face net. 2) Integrated the embedding of the faces and added facenet tensorflow. 3) On launch of the camera I extract the embeddings and finding the close one from perviously saved embeddings using l2 normialization. But it is not giving accurate results.
Kindly help.
Hello,
So after my previous query, everything is sorted and works, except for one glitch. Please note that the offical PlayStore app also has this problem. I am not sure if the cause is the same as I can only talk about my logs.
Here is my scenario:
The problem:
FYI: I am using another camera library [https://github.com/natario1/CameraView] for this, as I need it for other purposes. I also can process frames directly instead of extracting it from a video file. Please note, it offers both camera1 and camera2 support. I am using the camera2 api support.
I have attached four files:
Sorry about the .txt extensions, .java files are not allowed as attachments.
Can you please take a look and tell me where I am going wrong? I hope I am wrong, because your library is awesome and I would hate it if there is an inherent problem with it.
Thanks and Cheers! MainActivity.txt RecognitionActivity.txt face-lib.txt shared_preferences.txt