DetectFacesTransform

public class DetectFacesTransform : Transform

Detects the faces contained inside an image.

Lifecycle

  • Initializes a DetectFacesTransform object.

    Declaration

    Swift

    public init()

Public Functions

  • 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 color option.

    Declaration

    Swift

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

    Parameters

    value

    Will change the color of the “face object” boxes and text.

  • Adds the export option.

    Declaration

    Swift

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

    Parameters

    value

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