File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
AmplifyPlugins/Predictions/AWSPredictionsPlugin/Liveness Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ func ovalChallenge(from event: ServerSessionInformationEvent) -> FaceLivenessSes
31
31
heightWidthRatio: challengeConfig. ovalHeightWidthRatio,
32
32
iouThreshold: challengeConfig. ovalIouThreshold,
33
33
iouWidthThreshold: challengeConfig. ovalIouWidthThreshold,
34
- iouHeightThreshold: challengeConfig. ovalIouHeightThreshold
34
+ iouHeightThreshold: challengeConfig. ovalIouHeightThreshold,
35
+ ovalFitTimeout: challengeConfig. ovalFitTimeout
35
36
)
36
37
)
37
38
}
Original file line number Diff line number Diff line change @@ -55,19 +55,22 @@ extension FaceLivenessSession.OvalMatchChallenge {
55
55
public let iouThreshold : Double
56
56
public let iouWidthThreshold : Double
57
57
public let iouHeightThreshold : Double
58
+ public let ovalFitTimeout : Int
58
59
59
60
public init (
60
61
boundingBox: FaceLivenessSession . BoundingBox ,
61
62
heightWidthRatio: Double ,
62
63
iouThreshold: Double ,
63
64
iouWidthThreshold: Double ,
64
- iouHeightThreshold: Double
65
+ iouHeightThreshold: Double ,
66
+ ovalFitTimeout: Int
65
67
) {
66
68
self . boundingBox = boundingBox
67
69
self . heightWidthRatio = heightWidthRatio
68
70
self . iouThreshold = iouThreshold
69
71
self . iouWidthThreshold = iouWidthThreshold
70
72
self . iouHeightThreshold = iouHeightThreshold
73
+ self . ovalFitTimeout = ovalFitTimeout
71
74
}
72
75
}
73
76
}
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ struct ChallengeConfig: Codable {
18
18
let ovalIouHeightThreshold : Double
19
19
let ovalIouThreshold : Double
20
20
let ovalIouWidthThreshold : Double
21
+ let ovalFitTimeout : Int
21
22
22
23
enum CodingKeys : String , CodingKey {
23
24
case blazeFaceDetectionThreshold = " BlazeFaceDetectionThreshold "
@@ -30,5 +31,6 @@ struct ChallengeConfig: Codable {
30
31
case ovalIouHeightThreshold = " OvalIouHeightThreshold "
31
32
case ovalIouThreshold = " OvalIouThreshold "
32
33
case ovalIouWidthThreshold = " OvalIouWidthThreshold "
34
+ case ovalFitTimeout = " OvalFitTimeout "
33
35
}
34
36
}
You can’t perform that action at this time.
0 commit comments