FaceRecognition
@objc(VerIDFaceRecognition)
public protocol FaceRecognition
Face recognition protocol
-
Threshold for authentication
When comparing faces, comparisons with score above the threshold will be considered authenticated.
Declaration
Swift
@objc var authenticationScoreThreshold: NSNumber { get set } -
Maximum score that may be achieved by comparing two faces
Declaration
Swift
@objc var maxAuthenticationScore: NSNumber { get } -
Compare recognizable face or multiface subject to faces
Declaration
Swift
@objc func compareSubjectFaces(_ subjectFaces: [Recognizable], toFaces faces: [Recognizable]) throws -> NSNumberParameters
subjectFacesSubject faces to compare to other faces
facesOther faces to compare to subject faces
Return Value
Score indicating the similarity between the faces
-
Extract face recognition template from a face to make it available for recognition
Declaration
Swift
@objc func createRecognizableFacesFromFaces(_ faces: [Face], inImage image: VerIDImage) throws -> [Recognizable]Parameters
facesFaces to convert
imageSample buffer in which the faces were detected
Return Value
Array of recognizable faces
FaceRecognition Protocol Reference