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 fails

    Since

    1.5.0

    Declaration

    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

  • Create upright CGImage from VerIDImage

    Throws

    Error if the conversion fails

    Since

    1.5.0

    Declaration

    Swift

    @objc
    func cgImageFromVerIDImage(_ image: VerIDImage) throws -> CGImage

    Parameters

    image

    The image to convert

    Return Value

    VerIDImage converted to CGImage

  • Optional name of the image processor (useful for logging to see which processor was used in different circumstances)

    Since

    1.5.0

    Declaration

    Swift

    @objc
    var name: String? { get }