PFCameraKitParameterBuilder
@interface PFCameraKitParameterBuilder : NSObject
Builder object for configuring CameraKit face check parameters.
Unspecified values are filled from the preset values of the current parameter’s
currentLevel when -build is called.
-
Set the lower bound of the face ratio. Face width should be between
faceSizeRatio× frame width and 1.0 × frame width. Checks vertical ratio in landscape mode and horizontal ratio in portrait mode. Valid range: 0.55 ~ 1.0. Presets: STRICT 0.75, MODERATE 0.65, RELAXED 0.55.Declaration
Objective-C
- (nonnull instancetype)setFaceSizeRatio:(float)faceSizeRatio; -
Set the absolute upper bound of head pose yaw. This value controls how far the head can look left or right. Valid range: 0.0 ~ 15.0. Presets: STRICT 5.0, MODERATE 10.0, RELAXED 15.0.
Declaration
Objective-C
- (nonnull instancetype)setFaceYaw:(float)faceYaw; -
Set the upper bound of head pose pitch. This value controls the allowed upward head pose. Valid range: -20.0 ~ 10.0. Presets: STRICT 0.0, MODERATE 5.0, RELAXED 10.0.
Declaration
Objective-C
- (nonnull instancetype)setFacePitchUpper:(float)facePitchUpper; -
Set the lower bound of head pose pitch. This value controls the allowed downward head pose. Valid range: -20.0 ~ 10.0. Presets: STRICT -10.0, MODERATE -15.0, RELAXED -20.0.
Declaration
Objective-C
- (nonnull instancetype)setFacePitchLower:(float)facePitchLower; -
Set the upper bound of lighting condition. Valid range: 0.8 ~ 1.0. Presets: STRICT 0.9, MODERATE 0.85, RELAXED 0.8.
Declaration
Objective-C
- (nonnull instancetype)setLightingUpper:(float)lightingUpper; -
Set the lower bound of lighting condition. Valid range: 0.55 ~ 1.0. Presets: STRICT 0.8, MODERATE 0.7, RELAXED 0.55.
Declaration
Objective-C
- (nonnull instancetype)setLightingLower:(float)lightingLower;
PFCameraKitParameterBuilder Class Reference