Skip to content

Commit 4cc17dc

Browse files
tjleingThomas Leingtylerjroach
authored
chore(liveness): add further test to match iOS. also flip left&right eyes (#101)
Co-authored-by: Thomas Leing <[email protected]> Co-authored-by: tjroach <[email protected]>
1 parent 32b41d5 commit 4cc17dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

liveness/src/main/java/com/amplifyframework/ui/liveness/ml/FaceDetector.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ internal class FaceDetector(private val livenessState: LivenessState) {
5454
var w = outputBoxes[0][i][2]
5555
var h = outputBoxes[0][i][3]
5656

57-
var leftEyeX = outputBoxes[0][i][4]
58-
var leftEyeY = outputBoxes[0][i][5]
59-
var rightEyeX = outputBoxes[0][i][6]
60-
var rightEyeY = outputBoxes[0][i][7]
57+
var rightEyeX = outputBoxes[0][i][4]
58+
var rightEyeY = outputBoxes[0][i][5]
59+
var leftEyeX = outputBoxes[0][i][6]
60+
var leftEyeY = outputBoxes[0][i][7]
6161

6262
var noseX = outputBoxes[0][i][8]
6363
var noseY = outputBoxes[0][i][9]

0 commit comments

Comments
 (0)