DlibDotNet icon indicating copy to clipboard operation
DlibDotNet copied to clipboard

How To Get Value of Confidence From Image Comparison

Open tossasyahlevi01 opened this issue 4 years ago • 3 comments

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

tossasyahlevi01 avatar Apr 05 '21 04:04 tossasyahlevi01

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

Hakentha avatar Apr 05 '21 12:04 Hakentha

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<SamplePair>(); 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)

tossasyahlevi01 avatar Apr 05 '21 14:04 tossasyahlevi01

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

Hakentha avatar Apr 05 '21 14:04 Hakentha