VerIDFaceRecognition
@objc
public class VerIDFaceRecognition : NSObject, FaceRecognition
Ver-ID SDK’s default implementation of the FaceRecognition
protocol
-
Core C++ library wrapper
Declaration
Swift
@objc public let detRecLib: DetRecLib
-
Face comparisons that result in score that equals or exceeds the threshold will consider the subject authenticated
Declaration
Swift
public var authenticationScoreThreshold: NSNumber { get set }
-
Maximum score that may be achieved by comparing two faces
Declaration
Swift
public let maxAuthenticationScore: NSNumber
-
Image processors used to prepare images for face recognition
Since
1.6.0Declaration
Swift
@objc public var imageProcessors: [ImageProcessorService]
-
Create a face that can be used for face recognition
Throws
Error if the operation failsDeclaration
Swift
public func createRecognizableFacesFromFaces(_ faces: [Face], inImage image: ImageProvider) throws -> [Recognizable]
Parameters
faces
Faces to convert to be usable for recognition
image
Image in which the faces were detected
Return Value
Array of faces suitable for face recognition
-
Compare faces of a subject to other faces
Throws
Error if the comparison failsDeclaration
Swift
public func compareSubjectFaces(_ subjectFaces: [Recognizable], toFaces faces: [Recognizable]) throws -> NSNumber
Parameters
subjectFaces
Subject faces to compare to other faces
faces
Other faces to compare to subject faces
Return Value
Comparison score – if the score equals or exceeds the
authenticationScoreThreshold
the subject may be considered authenticated in the faces