Filestack Documentation

Class Blur​Faces​Transform

public class BlurFacesTransform: Transform  

Blur selected faces contained inside an image.

BlurFacesTransform BlurFacesTransform Transform Transform BlurFacesTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a BlurFacesTransform object.

Methods

amount(_:​)

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

Adds amount option.

Parameters

value Float

Valid range: 0...20

type(_:​)

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

Adds the type option.

Parameters

value Transform​Shape​Type

An TransformShapeType value.

min​Size(_:​)

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

Adds the minSize option.

Parameters

value Float

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

max​Size(_:​)

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

Adds the maxSize option.

Parameters

value Float

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

buffer(_:​)

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

Adds the buffer option.

Parameters

value Int

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

blur(_:​)

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

Adds the blur option.

Parameters

value Float

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

all​Faces()

@discardableResult
    func allFaces() -> Self  

Adds the faces option with value all.

faces(_:​)

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

Adds the faces option.

Parameters

value [Int]

The faces to be included in the crop.