faceDistance static method

double faceDistance(
  1. Float32List a,
  2. Float32List b
)

Computes the Euclidean distance between two face embeddings.

Lower distance means more similar faces.

Typical thresholds for normalized embeddings:

  • < 0.6: Very likely the same person
  • 1.0: Different people

Implementation

static double faceDistance(Float32List a, Float32List b) =>
    FaceEmbedding.euclideanDistance(a, b);