Verifiers
struct Verifiers
Group of the verifiers methods.
-
Verify given best shot data for given face identifiers. “Similarity” and “verification status” are returned for each candidate. “Verification status” is “True” if the received similarity is greater than the verification_threshold (specified in the verifier handler). Hence, the reference and the candidate are considered the same person.
Declaration
Swift
public func performVerification(verifyID: String, query: PerformVerificationQuery, handler: @escaping (Result<PerformVerificationResponse, Error>) -> Void)Parameters
verifyIDhandler id. You can take it from LWConfig object e.g. webconfiguration.verifyID
queryverification query. Contains best shot data and face identifiers.
handlerresponse handler
-
This request performs verification of input descriptors. “Similarity” and “verification status” are returned for each candidate. “Verification status” is “True” if the received similarity is greater than the verification_threshold (specified in the verifier handler). Hence, the reference and the candidate are considered the same person.
Declaration
Swift
public func rawVerification(verifyID: String, query: BatchVerificationQuery, handler: @escaping (Result<BatchVerificationResponse, Error>) -> Void)Parameters
verifyIDhandler id. You can take it from LWConfig object e.g. webconfiguration.verifyID
queryBatchVerificationQuery contains first descriptor (reference) and other (candidates). First descriptor is matching with others and needs to pass in BatchVerificationQuery initializer as array (e.g. [firstDescriptor]). While adding all descriptors to BatchVerificationQuery unique identifier for each descriptor you should define manually (e.g. using UUID).
handlerresponse handler
Verifiers Structure Reference