Skip to content

Commit

Permalink
Use correct settings in face capture
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubdolejs committed Apr 14, 2023
1 parent a637a17 commit 3635857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ID Capture/VerIDSessionRunner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class VerIDSessionRunner: ObservableObject, VerIDSessionDelegate {
func startSession(verID: VerID) {
let settings = LivenessDetectionSessionSettings()
settings.faceCaptureCount = UserDefaults.standard.bool(forKey: Settings.Keys.enableActiveLivenessDetection.rawValue) ? 2 : 1
let session = VerIDSession(environment: verID, settings: LivenessDetectionSessionSettings())
let session = VerIDSession(environment: verID, settings: settings)
session.delegate = self
session.start()
self.isSessionRunning = true
Expand Down

0 comments on commit 3635857

Please sign in to comment.