New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong cosine similarity results on face recognition #7
Comments
Are you using this project? Besides please crop the face you would like to compare. This image should just include face but your image is not in this form. |
Yes, I am using this code exactly. I'm using parts of your code. The code of "cut face":
If I use this image (1080x720 total) for comparison, everything is OK and the result is this:
Thank you so much for answering me! |
This is less than the threshold value (0.30). So, the issue is resolved, right? I will add crop face command while reading dictionary images. |
Resolved |
No, it's not resolved. Sorry if I could not be clearer. I have 4 images in my tests. Face1: The face I'd like to compare (taken by the camera phone): Me I preloaded Face1 and Face2. The problem is:
I wonder what I might be doing wrong. I assume that the error is happening because the Face 3 is in grayscale. I tried everything but I can not get a satisfactory result in this case. And I need to make face recognition work under the conditions of using a camera ip. Thank you very much for your attention! |
Would you please try to load face 1 and face 2 in gray scale? Besides, please confirm that face 1, 2, 3 and 4 are already cropped. |
Yes, all the images are being cropped and I'm loading them in grayscale. I wrote a function that uses OpenCV features to try to clean the images. The results have improved but the cosine similarity is still greater than 0.20 and I still have false positives.
Maybe I do not know how to work with Keras and Tensorflow. |
If possible, reopen this issue. Even though there are no problems with your code, maybe other people can help me and so the code is also improved to be used on ip cameras (w/ noise). |
It seems that ip cams have trouble that's why it is reopened |
I solved the problem using higher resolution camera images. If anyone can predict images using low-resolution surveillance cameras (640x480), please enter the code here. |
First of all I would like to thank for the code, very well done and written.
I used your code for face recognition (and using the model template provided by you, thank you) . And in my tests everything went as planned.
But when I used it on my ip camera (640x480 resolution), the results for my face were confusing. Where can I be wrong? Can the results be wrong because the image I want to compare is in grayscale?
The face I'd like to compare (face 1): Me
The face of someone else (face 2): Other person
My face (which I'd like to match w/ the face 1): Me in ip camera
Other person "cosine similarity": 0.4480170012
Me "cosine similarity": 0.6674099863
I wish you would answer me even if you could not help me. I do not know what to do anymore.
Thank youuu!!
The text was updated successfully, but these errors were encountered: