Filestack Documentation

Class Detect​Faces​Transform

public class DetectFacesTransform: Transform  

Detects the faces contained inside an image.

DetectFacesTransform DetectFacesTransform Transform Transform DetectFacesTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a DetectFacesTransform object.

Methods

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

color(_:​)

@discardableResult
    func color(_ value: UIColor) -> Self  

Adds the color option.

Parameters

value UIColor

Will change the color of the "face object" boxes and text.

export(_:​)

@discardableResult
    func export(_ value: Bool) -> Self  

Adds the export option.

Parameters

value Bool

If true, it will export all face objects to a JSON object.