Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
justin200914 committed Aug 15, 2023
1 parent 659a909 commit ff1fa59
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,10 @@ function checkFaceQuality() {
}

document.getElementById("cap_message").innerHTML = msg;
document.getElementById("res_yaw").innerHTML = "Yaw: " + qaqarray[4 + 1];
document.getElementById("res_pitch").innerHTML = "Pitch: " + qaqarray[5 + 1];
//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];
Expand Down Expand Up @@ -283,7 +285,6 @@ async function onPlay() {

async function startCamera() {

load();
const stream = await navigator.mediaDevices.getUserMedia({ video: {} })
const videoEl = document.getElementById('inputVideo')
if(videoEl.srcObject == null) {
Expand Down

0 comments on commit ff1fa59

Please sign in to comment.