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 -> NSNumber

    Parameters

    subjectFaces

    Subject faces to compare to other faces

    faces

    Other 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

    faces

    Faces to convert

    image

    Sample buffer in which the faces were detected

    Return Value

    Array of recognizable faces