CropFacesTransform
public class CropFacesTransform : Transform
Crops selected faces contained inside an image.
-
Initializes a
CropFacesTransformobject.Declaration
Swift
public init()
-
Adds the
modeoption.Declaration
Swift
@discardableResult func mode(_ value: TransformCropMode) -> SelfParameters
valueAn
TransformCropModevalue. -
Adds the
widthoption.Declaration
Swift
@discardableResult func width(_ value: Int) -> SelfParameters
valueThe crop’s width.
-
Adds the
heightoption.Declaration
Swift
@discardableResult func height(_ value: Int) -> SelfParameters
valueThe crop’s height.
-
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
facesoption with valueall.Declaration
Swift
@discardableResult func allFaces() -> Self -
Adds the
bufferoption.Declaration
Swift
@discardableResult func buffer(_ value: Int) -> SelfParameters
valueAdjusts the buffer around the face object as a percentage of the original object. Valid range:
0...1000 -
Adds the
facesoption.Declaration
Swift
@discardableResult func faces(_ value: [Int]) -> SelfParameters
valueThe faces to be included in the crop.
View on GitHub
CropFacesTransform Class Reference