compareFaces static method
Compares two face embeddings and returns a cosine similarity score.
Result ranges from -1 (completely different) to 1 (identical).
Typical thresholds:
-
0.6: Very likely the same person
-
0.5: Probably the same person
- < 0.3: Different people
Implementation
static double compareFaces(Float32List a, Float32List b) =>
FaceEmbedding.cosineSimilarity(a, b);