Overview
TheMatchResult model represents an individual match result from a face comparison operation. It contains the person’s name and a probability score indicating how closely their face matches the target face.
Rust Definition
TypeScript Definition
Fields
The name of the person from the original comparison request. This corresponds to the
name field in the Person object that was compared.A floating-point value between 0.0 and 1.0 representing the probability that this person matches the target face. Higher values indicate stronger matches. A value of 1.0 would represent a perfect match, while 0.0 indicates no similarity.
Example JSON
Array Example
Match results are typically returned as an array in CompareResponse:Understanding Probability Scores
Score Ranges
The probability field represents the confidence level of the match:| Range | Confidence | Interpretation |
|---|---|---|
| 0.9 - 1.0 | Very High | Strong match - very likely the same person |
| 0.7 - 0.9 | High | Good match - likely the same person |
| 0.5 - 0.7 | Moderate | Some similarity - uncertain match |
| 0.3 - 0.5 | Low | Weak similarity - probably different people |
| 0.0 - 0.3 | Very Low | Little to no similarity - likely different people |
Factors Affecting Probability
Several factors can influence the probability score:- Image Quality: Higher resolution and clearer images produce more accurate scores
- Lighting Conditions: Consistent lighting between target and comparison images improves accuracy
- Face Angle: Frontal faces are easier to match than profile or angled shots
- Age Difference: Significant time differences between photos may lower probability scores
- Facial Expressions: Neutral expressions typically match better than extreme expressions
- Obstructions: Glasses, masks, or other face coverings can affect matching accuracy
Recommended Thresholds
For different use cases, consider these threshold recommendations:- High Security Applications (e.g., access control): Use a threshold of 0.85 or higher
- Standard Identification (e.g., photo tagging): Use a threshold of 0.70 to 0.80
- Similarity Suggestions (e.g., “people you might know”): Use a threshold of 0.50 to 0.70
- Research/Analytics: Adjust based on your specific accuracy requirements
Usage Example
Processing match results in your application:Related Models
- CompareResponse - Contains an array of MatchResult objects
- Person - The source person model that generated this match result
- CompareRequest - The request that initiates the comparison