Class
DetectFacesTransform
public class DetectFacesTransform: Transform
Detects the faces contained inside an image.
Relationships
Superclass
Transform
:nodoc:
Initializers
Methods
minSize(_:)
@discardableResult
func minSize(_ value: Float) -> Self
Adds the minSize
option.
Parameters
Name | Type | Description |
---|---|---|
value | Float |
This parameter is used to weed out objects that most likely are not faces. Valid range: |
maxSize(_:)
@discardableResult
func maxSize(_ value: Float) -> Self
Adds the maxSize
option.
Parameters
Name | Type | Description |
---|---|---|
value | Float |
This parameter is used to weed out objects that most likely are not faces. Valid range: |
color(_:)
@discardableResult
func color(_ value: UIColor) -> Self
Adds the color
option.
Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
value | Bool |
If true, it will export all face objects to a JSON object. |