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) throws
Parameters
image
The image to prepare
recalculate
true
if the image buffer should be recalculated if it exists -
Declaration
Swift
@objc func cgImageFromVerIDImage(_ image: VerIDImage) throws -> CGImage
Parameters
image
The image to convert
Return Value
VerIDImage
converted 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 }