Class FaceAuthentication.Builder
-
- All Implemented Interfaces:
public final class FaceAuthentication.Builder
-
-
Constructor Summary
Constructors Constructor Description FaceAuthentication.Builder()
-
Method Summary
Modifier and Type Method Description final FaceAuthentication.Builder
setShowTutorials(Boolean showTutorials)
Show tutorials how to capture selfie before the actual scan. final FaceAuthentication.Builder
setAutoCaptureTimeout(Integer autoCaptureTimeout)
Sets the selfie auto capture timeout in seconds. final FaceAuthentication.Builder
setCaptureAttempts(Integer captureAttempts)
Sets the selfie capture attempts. final FaceAuthentication.Builder
setEyesClosedCheckEnabled(Boolean eyesClosedCheckEnabled)
Enables/disables eyes closed check. final FaceAuthentication.Builder
setHeadCoverCheckEnabled(Boolean headCoverCheckEnabled)
Enables/disables head cover check. final FaceAuthentication.Builder
setLensesCheckEnabled(Boolean lensesCheckEnabled)
Enables/disables lenses check. final FaceAuthentication.Builder
setMaskCheckEnabled(Boolean maskCheckEnabled)
Specify true to enable local face mask check detection during face capture. final FaceAuthentication
build()
-
-
Method Detail
-
setShowTutorials
final FaceAuthentication.Builder setShowTutorials(Boolean showTutorials)
Show tutorials how to capture selfie before the actual scan. Default value is true.
- Returns:
Builder
-
setAutoCaptureTimeout
final FaceAuthentication.Builder setAutoCaptureTimeout(Integer autoCaptureTimeout)
Sets the selfie auto capture timeout in seconds.
- Parameters:
autoCaptureTimeout
- Auto capture timeout value.
-
setCaptureAttempts
final FaceAuthentication.Builder setCaptureAttempts(Integer captureAttempts)
Sets the selfie capture attempts.
- Parameters:
captureAttempts
- Capture attempts value.
-
setEyesClosedCheckEnabled
final FaceAuthentication.Builder setEyesClosedCheckEnabled(Boolean eyesClosedCheckEnabled)
Enables/disables eyes closed check. Default value is enabled. If enabled:
In auto capture mode, all frames where closed eyes are detected are filtered out and not used for further processing.
In manual capture mode, photos where closed eyes are detected are processed but the results are marked for additional review.
- Parameters:
eyesClosedCheckEnabled
- Boolean to indicate if the eyes closed check should be performed.- Returns:
Builder
-
setHeadCoverCheckEnabled
final FaceAuthentication.Builder setHeadCoverCheckEnabled(Boolean headCoverCheckEnabled)
Enables/disables head cover check. Default value is enabled. If enabled:
In auto capture mode, all frames where head cover is detected are filtered out and not used for further processing.
In manual capture mode, photos where head cover is detected are processed but the results are marked for additional review.
- Parameters:
headCoverCheckEnabled
- Boolean to indicate if the head cover check should be performed.- Returns:
Builder
-
setLensesCheckEnabled
final FaceAuthentication.Builder setLensesCheckEnabled(Boolean lensesCheckEnabled)
Enables/disables lenses check. Default value is enabled. If enabled:
In auto capture mode, all frames where lenses are detected are filtered out and not used for further processing.
In manual capture mode, photos where lenses are detected are processed but the results are marked for additional review.
- Parameters:
lensesCheckEnabled
- Boolean to indicate if the lenses check should be performed.- Returns:
Builder
-
setMaskCheckEnabled
final FaceAuthentication.Builder setMaskCheckEnabled(Boolean maskCheckEnabled)
Specify true to enable local face mask check detection during face capture. Default value is true. If disabled, the Face Mask Check is performed on the server.
- Parameters:
maskCheckEnabled
- Boolean to indicate if the mask check should be performed.- Returns:
Builder
-
build
final FaceAuthentication build()
-
-
-
-