Skip to content

Commit

Permalink
Read facematch timeout from server event JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Leing committed Aug 30, 2023
1 parent aac074a commit 8ba1b59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ data class FaceTargetMatchingParameters internal constructor(
val targetIouWidthThreshold: Float,
val targetIouHeightThreshold: Float,
val faceIouWidthThreshold: Float,
val faceIouHeightThreshold: Float
val faceIouHeightThreshold: Float,
val ovalFitTimeout: Int
)
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ internal data class ChallengeConfig(
@SerialName("OvalIouWidthThreshold") val ovalIouWidthThreshold: Float,
@SerialName("OvalIouHeightThreshold") val ovalIouHeightThreshold: Float,
@SerialName("FaceIouWidthThreshold") val faceIouWidthThreshold: Float,
@SerialName("FaceIouHeightThreshold") val faceIouHeightThreshold: Float
@SerialName("FaceIouHeightThreshold") val faceIouHeightThreshold: Float,
@SerialName("OvalFitTimeout") val ovalFitTimeout: Int
)
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ internal class RunFaceLivenessSession(
challengeConfig.ovalIouWidthThreshold,
challengeConfig.ovalIouHeightThreshold,
challengeConfig.faceIouWidthThreshold,
challengeConfig.faceIouHeightThreshold
challengeConfig.faceIouHeightThreshold,
challengeConfig.ovalFitTimeout
)
val faceTargetChallenge = FaceTargetChallenge(
ovalParameters.width,
Expand Down

0 comments on commit 8ba1b59

Please sign in to comment.