Class
BlurFacesTransform
public class BlurFacesTransform: Transform
Blur selected faces contained inside an image.
Relationships
Superclass
Transform:nodoc:
Initializers
Methods
amount(_:)
@discardableResult
func amount(_ value: Float) -> Self
Adds amount option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Float |
Valid range: |
type(_:)
@discardableResult
func type(_ value: TransformShapeType) -> Self
Adds the type option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | TransformShapeType |
An |
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: |
buffer(_:)
@discardableResult
func buffer(_ value: Int) -> Self
Adds the buffer option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Int |
Adjusts the buffer around the face object as a percentage of the original object. Valid range: |
blur(_:)
@discardableResult
func blur(_ value: Float) -> Self
Adds the blur option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | Float |
The amount to blur the pixelated faces. Valid range: |
faces(_:)
@discardableResult
func faces(_ value: [Int]) -> Self
Adds the faces option.
Parameters
| Name | Type | Description |
|---|---|---|
| value | [Int] |
The faces to be included in the crop. |