DetectFacesTransform
public class DetectFacesTransform : Transform
Detects the faces contained inside an image.
-
Initializes a
DetectFacesTransformobject.Declaration
Swift
public init()
-
Adds the
minSizeoption.Declaration
Swift
@discardableResult func minSize(_ value: Float) -> SelfParameters
valueThis parameter is used to weed out objects that most likely are not faces. Valid range:
0.01...10000 -
Adds the
maxSizeoption.Declaration
Swift
@discardableResult func maxSize(_ value: Float) -> SelfParameters
valueThis parameter is used to weed out objects that most likely are not faces. Valid range:
0.01...10000 -
Adds the
coloroption.Declaration
Swift
@discardableResult func color(_ value: UIColor) -> SelfParameters
valueWill change the color of the “face object” boxes and text.
-
Adds the
exportoption.Declaration
Swift
@discardableResult func export(_ value: Bool) -> SelfParameters
valueIf true, it will export all face objects to a JSON object.
View on GitHub
DetectFacesTransform Class Reference