ImageProcessorService
@objc
public protocol ImageProcessorService
Protocol for a service that processes images for face detection
Since
1.5.0-
Prepare image for face detection
Throws
Error if the image preparation failsSince
1.5.0Declaration
Swift
@objc func prepareImageForFaceDetection(_ image: VerIDImage, recalculate: Bool) throwsParameters
imageThe image to prepare
recalculatetrueif the image buffer should be recalculated if it exists -
Declaration
Swift
@objc func cgImageFromVerIDImage(_ image: VerIDImage) throws -> CGImageParameters
imageThe image to convert
Return Value
VerIDImageconverted toCGImage -
Optional name of the image processor (useful for logging to see which processor was used in different circumstances)
Since
1.5.0Declaration
Swift
@objc var name: String? { get }
ImageProcessorService Protocol Reference