MatchResult class

Output result returned by FaceKit recognition queries.

Constructors

MatchResult({required bool matched, required String personId, required String name, required double confidence, required double distance, Map<String, dynamic>? metadata})
Creates a MatchResult.
const
MatchResult.unknown([double score = 0.0])
Factory constructor for unknown unmatched query result.
factory

Properties

confidence double
Match confidence score (0.0 to 1.0).
final
distance double
Raw embedding distance (Cosine similarity or Euclidean distance).
final
hashCode int
The hash code for this object.
no setterinherited
matched bool
Whether query face matched a registered subject above threshold.
final
metadata Map<String, dynamic>?
Associated metadata key-value store.
final
name String
Full name of matched person ("Unknown" if not matched).
final
personId String
Unique person identifier ("UNKNOWN" if not matched).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited