in client/src/js/ChallengeProcessor.ts [108:118]
function(result: faceapi.WithFaceLandmarks<{ detection: faceapi.FaceDetection }, faceapi.FaceLandmarks68>[]) {
if (Utils.isProfiling()) {
Logger.timeEnd("faceDetectionWithFaceLandmarks");
}
if (result) {
ChallengeProcessor.processDetectionResults(challengeProcessor, result);
} else {
setTimeout(() => ChallengeProcessor.process(challengeProcessor));
}
}