During the setup before the exam (setup modal), add a check for identifying the user. Unlike the identification logic for during examination, the user will need to be identified within a short period of time and keep being continuously identified for at least a few seconds.
Load webcam
Load face detection model
Start window of time for user to be identified (Timer A)
If the user is not identified within the span of Timer A, then the user cannot continue with the exam
If the user is identified, wait a few seconds (Timer B)
If the user maintains identification until the end of Timer B, then the user proceeds with the exam
During the setup before the exam (setup modal), add a check for identifying the user. Unlike the identification logic for during examination, the user will need to be identified within a short period of time and keep being continuously identified for at least a few seconds.