Class FaceVerification
- Namespace
- NuvTools.Security.Biometrics
- Assembly
- NuvTools.Security.dll
Result of comparing a captured face with the one on record.
public sealed record FaceVerification : IEquatable<FaceVerification>
- Inheritance
-
FaceVerification
- Implements
- Inherited Members
Constructors
FaceVerification(bool, double, string?, FaceVerificationFailureType)
Result of comparing a captured face with the one on record.
public FaceVerification(bool Matched, double Similarity, string? Liveness, FaceVerificationFailureType Failure)
Parameters
MatchedboolWhether the capture was accepted as the person: similarity at or above the configured minimum and, when liveness is enforced, a liveness the application accepts.
SimilaritydoubleHow alike the two faces are (0.0 = different, 1.0 = identical). Zero when no comparison happened.
LivenessstringWhat the provider reported about the capture being of a live person, in its own words, or
nullwhen it reported nothing.FailureFaceVerificationFailureTypeWhy the capture was not accepted, or None.
Properties
Failure
Why the capture was not accepted, or None.
public FaceVerificationFailureType Failure { get; init; }
Property Value
Liveness
What the provider reported about the capture being of a live person, in its own words, or
null when it reported nothing.
public string? Liveness { get; init; }
Property Value
Matched
Whether the capture was accepted as the person: similarity at or above the configured minimum and, when liveness is enforced, a liveness the application accepts.
public bool Matched { get; init; }
Property Value
Similarity
How alike the two faces are (0.0 = different, 1.0 = identical). Zero when no comparison happened.
public double Similarity { get; init; }
Property Value
Methods
Failed(FaceVerificationFailureType)
Creates the result of a verification that never reached a comparison.
public static FaceVerification Failed(FaceVerificationFailureType failure)
Parameters
failureFaceVerificationFailureTypeWhy it failed.