File tree Expand file tree Collapse file tree 4 files changed +3
-4
lines changed
java/com/amplifyframework/ui/liveness
samples/liveness/app/src/main/res/values Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,6 @@ internal class LivenessCoordinator(
294
294
const val TARGET_ENCODE_BITRATE = (1024 * 1024 * .6 ).toInt()
295
295
const val TARGET_ENCODE_KEYFRAME_INTERVAL = 1 // webm muxer only flushes to file on keyframe
296
296
val TARGET_RESOLUTION_SIZE = Size (TARGET_WIDTH , TARGET_HEIGHT )
297
- const val FACE_OVAL_MATCH_TIMEOUT_MS : Long = 7000
298
297
const val DISCONNECT_EVENT_TIMEOUT_MS : Long = 8000
299
298
}
300
299
}
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ internal data class LivenessState(
263
263
// the oval after a period of time
264
264
if (! detectedFaceMatchedOval && ! faceOvalMatchTimerStarted) {
265
265
faceOvalMatchTimerStarted = true
266
- Timer ().schedule(LivenessCoordinator . FACE_OVAL_MATCH_TIMEOUT_MS ) {
266
+ Timer ().schedule(faceTargetChallenge !! .faceTargetMatching.ovalFitTimeout.toLong() ) {
267
267
if (! detectedFaceMatchedOval && faceGuideRect != null ) {
268
268
readyForOval = false
269
269
val timeoutError =
Original file line number Diff line number Diff line change 29
29
<string name =" amplify_ui_liveness_get_ready_a11y_wrong_face_fit_icon_content_description" >Face does not fill the oval</string >
30
30
<string name =" amplify_ui_liveness_get_ready_good_fit" >Good fit</string >
31
31
<string name =" amplify_ui_liveness_get_ready_too_far" >Too far</string >
32
- <string name =" amplify_ui_liveness_get_ready_step_1" >When an oval appears, fill the oval with your face within 7 seconds .</string >
32
+ <string name =" amplify_ui_liveness_get_ready_step_1" >When an oval appears, follow the instructions to fit your face in it .</string >
33
33
<string name =" amplify_ui_liveness_get_ready_step_2" >Make sure your face is not covered with sunglasses or a mask.</string >
34
34
<string name =" amplify_ui_liveness_get_ready_step_3" >Move to a well-lit place that is not in direct sunlight.</string >
35
35
<string name =" amplify_ui_liveness_get_ready_begin_check" >Begin check</string >
Original file line number Diff line number Diff line change 32
32
<string name =" error_camera_permission_denied_title" >Camera permission not granted</string >
33
33
<string name =" error_camera_permission_denied_message" >Camera permission required to perform check</string >
34
34
<string name =" error_timed_out_title" >Time out</string >
35
- <string name =" error_timed_out_face_fit_message" >Face did not fill oval within time limit. Try again and completely fill oval with face within 7 seconds .</string >
35
+ <string name =" error_timed_out_face_fit_message" >Face did not fill oval within time limit. Try again and completely fill oval with face within it .</string >
36
36
<string name =" error_timed_out_session_message" >Session timed out. Try again.</string >
37
37
<string name =" error_failure_during_countdown_title" >"Check failed during countdown"</string >
38
38
<string name =" error_failure_during_countdown_message" >Avoid moving closer during countdown and ensure only one face is in front of camera.</string >
You can’t perform that action at this time.
0 commit comments