VerIDFaceDetection
@objc
public class VerIDFaceDetection : NSObject, FaceDetection
Ver-ID SDK’s default implementation of the FaceDetection protocol
-
Face template extraction (for face recognition) will only be run if the detected face’s quality meets this threshold
Declaration
Swift
@objc public var faceExtractQualityThreshold: Float { get set } -
Full face detection (slower) will be run if the detected face quality falls below this threshold when tracking a face in a sequence of images
Declaration
Swift
@objc public var landmarkTrackingQualityThreshold: Float { get set } -
Core C++ library wrapper
Declaration
Swift
@objc public let detRecLib: DetRecLib -
Image processors used to prepare images for face detection
Since
1.6.0Declaration
Swift
@objc public var imageProcessors: [ImageProcessorService] -
Detect faces in image
Note
UseFaceRecognition.createRecognizableFacesFromFaces(_:inImage:)to use the faces for face recognitionThrows
Error if the detection failsDeclaration
Swift
@objc public func detectFacesInImage(_ image: VerIDImage, limit: Int32, options: UInt) throws -> [Face]Parameters
imageImage in which to detect faces
limitMaximum number of faces to detect
optionsOption flags (unused in this version)
Return Value
Array of detected faces
-
Start face tracking
Declaration
Swift
@objc public func startFaceTracking() -> FaceTrackingReturn Value
Face tracking session
VerIDFaceDetection Class Reference