VerIDImageProcessorService
@objc
public class VerIDImageProcessorService : NSObject, ImageProcessorService
Ver-ID’s default implementation of the ImageProcessorService protocol
Since
1.5.0-
Adjustment provider to use when converting the image to grayscale
Since
1.5.0Declaration
Swift
@objc public let imageAdjustmentProvider: ImageAdjustmentProvider -
Name of the provider for logging purposes. Inherited from the adjustment provider.
Since
1.5.0Declaration
Swift
public var name: String? { get } -
Constructor
Since
1.5.0Declaration
Swift
@objc public init(imageAdjustmentProvider: ImageAdjustmentProvider)Parameters
imageAdjustmentProviderImage adjustment provider to use when converting the image to grayscale
-
Prepare image for face detection
Throws
Error if the image preparation failsSince
1.5.0Declaration
Swift
public func prepareImageForFaceDetection(_ image: VerIDImage, recalculate: Bool) throwsParameters
imageThe image to prepare
recalculatetrueif the image buffer should be recalculated if it exists -
Declaration
Swift
public func cgImageFromVerIDImage(_ image: VerIDImage) throws -> CGImageParameters
imageThe image to convert
Return Value
VerIDImageconverted toCGImage
VerIDImageProcessorService Class Reference