BlurFacesTransform

public class BlurFacesTransform : Transform

Blur selected faces contained inside an image.

Lifecycle

  • Initializes a BlurFacesTransform object.

    Declaration

    Swift

    public init()

Public Functions

  • Adds amount option.

    Declaration

    Swift

    @discardableResult
    func amount(_ value: Float) -> Self

    Parameters

    value

    Valid range: 0...20

  • Adds the type option.

    Declaration

    Swift

    @discardableResult
    func type(_ value: TransformShapeType) -> Self

    Parameters

    value

    An TransformShapeType value.

  • Adds the minSize option.

    Declaration

    Swift

    @discardableResult
    func minSize(_ value: Float) -> Self

    Parameters

    value

    This parameter is used to weed out objects that most likely are not faces. Valid range: 0.01...10000

  • Adds the maxSize option.

    Declaration

    Swift

    @discardableResult
    func maxSize(_ value: Float) -> Self

    Parameters

    value

    This parameter is used to weed out objects that most likely are not faces. Valid range: 0.01...10000

  • Adds the buffer option.

    Declaration

    Swift

    @discardableResult
    func buffer(_ value: Int) -> Self

    Parameters

    value

    Adjusts the buffer around the face object as a percentage of the original object. Valid range: 0...1000

  • Adds the blur option.

    Declaration

    Swift

    @discardableResult
    func blur(_ value: Float) -> Self

    Parameters

    value

    The amount to blur the pixelated faces. Valid range: 0...20

  • Adds the faces option with value all.

    Declaration

    Swift

    @discardableResult
    func allFaces() -> Self
  • Adds the faces option.

    Declaration

    Swift

    @discardableResult
    func faces(_ value: [Int]) -> Self

    Parameters

    value

    The faces to be included in the crop.