ImageAdjustmentProvider

@objc
open class ImageAdjustmentProvider : NSObject

Provides an adjustment of grayscale image used for face detection

Since

1.5.0
  • Name of the adjustment

    Since

    1.5.0

    Declaration

    Swift

    @objc
    open var name: String { get }
  • Adjust grayscale buffer with the given size

    Throws

    Error if the adjustment fails

    Since

    1.5.0

    Declaration

    Swift

    @objc
    open func adjustImageBuffer(_ buffer: [UInt8], size: CGSize) throws -> [UInt8]

    Parameters

    buffer

    Grayscale buffer to adjust

    size

    Size of the image in the buffer

    Return Value

    Adjusted buffer