From e34f52022ad60259616d42d6d56ce184d8556f05 Mon Sep 17 00:00:00 2001 From: justin200914 <125717930+justin200914@users.noreply.github.com> Date: Wed, 16 Aug 2023 20:07:52 +0800 Subject: [PATCH] Update main.js --- main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 68858a8..8647827 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,7 @@ const PITCH_THRESHOLD = 7; const YAW_THRESHOLD = 7; -const ROLL_THRESHOLD = 10; +const ROLL_THRESHOLD = 13; const MASK_THRESHOLD = 0.5; const SUNGLASS_THRESHOLD = 0.5; const EYE_DIST_THRESHOLD_MIN = 90; @@ -245,10 +245,10 @@ function checkFaceQuality() { } document.getElementById("cap_message").innerHTML = msg; - // document.getElementById("res_yaw").innerHTML = "Yaw: " + qaqarray[4 + 1]; - document.getElementById("res_yaw").innerHTML = video.videoWidth; - // document.getElementById("res_pitch").innerHTML = "Pitch: " + qaqarray[5 + 1]; - document.getElementById("res_pitch").innerHTML = video.videoHeight; + document.getElementById("res_yaw").innerHTML = "Yaw: " + qaqarray[4 + 1]; + // document.getElementById("res_yaw").innerHTML = video.videoWidth; + document.getElementById("res_pitch").innerHTML = "Pitch: " + qaqarray[5 + 1]; + // document.getElementById("res_pitch").innerHTML = video.videoHeight; document.getElementById("res_roll").innerHTML = "Roll: " + qaqarray[6 + 1]; document.getElementById("res_eyeDist").innerHTML = "Eye Dist: " + qaqarray[8 + 1]; document.getElementById("res_eyeClosed").innerHTML = "Eye Closed: " + qaqarray[11 + 1];