Skip to content
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

How To Get Value of Confidence From Image Comparison #251

Open
tossasyahlevi01 opened this issue Apr 5, 2021 · 3 comments
Open

How To Get Value of Confidence From Image Comparison #251

tossasyahlevi01 opened this issue Apr 5, 2021 · 3 comments

Comments

@tossasyahlevi01
Copy link

i'm develop an API that can you access from https://mk-cideng.ddns.net:5001/ConsoleFR/Index , everything is ok but i want to add one feature which is i want to show a value of confidence from the result of Image Comparison

which function that i have to implement ?

thanks

@Hakentha
Copy link

Hakentha commented Apr 5, 2021

u can change function CompareFaces:
in :
foreach (var faceEncoding in array)
yield return FaceDistance(faceEncoding, faceEncodingToCheck) <= tolerance;
}

@tossasyahlevi01
Copy link
Author

sorry bro, im still dont get it, in which class / module that contain CompareFaces function ?

im using this code to detect the tolerance but how to return the value of this object
var descriptors = dnn.Operator(chips);
var edges = new List();
for (uint i = 0; i < descriptors.Count; ++i)
for (var j = i; j < descriptors.Count; ++j)

                        // record every pair of two similar faces
                        // faces are similar if they are less than 0.6 apart in the 128D embedding space
                        if (Dlib.Length(descriptors[i] - descriptors[j]) < 0.6)

@Hakentha
Copy link

Hakentha commented Apr 5, 2021

Hi! u can see the library https://github.com/takuya-takeuchi/FaceRecognitionDotNet
Ull have many examples!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants