Graduate

Update flask

......@@ -152,7 +152,7 @@ setTimeout(processVideo, 0);
}
</script>
</head>
<body onload="cv['onRuntimeInitialized']=()=>{ load_cascade() }">
<body onload="cv['onRuntimeInitialized']=()=>{ load_cascade(); };">
<div id="container">
<video autoplay="true" id="videoInput" width=640 height=480 style="display: none;"></video>
<canvas id="canvasOutput" width=640 height=480></canvas>
......
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Web Attendance System Register</title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
......@@ -14,13 +14,11 @@
let tempCanvas = document.createElement("canvas");
function load_cascade()
{
alert("shibal");
let faceCascadeFile = 'haarcascade_frontalface_default.xml';
let faceCascadeURL = "{{url_for('static', filename='js/haarcascade_frontalface_default.xml')}}";
let faceCascadeFile = 'haarcascade_frontalface_default.xml'
let faceCascadeURL = 'static/js/haarcascade_frontalface_default.xml'
let utils = new Utils('errorMessage');
utils.createFileFromUrl(faceCascadeFile, faceCascadeURL, () => {
alert("shibal");
activate();
activate()
});
}
function activate()
......@@ -100,14 +98,17 @@ var loadFile = function(event) {
}
};
cv['onRuntimeInitialized']=()=>{
load_cascade();
};
</script>
</head>
<body class="w3-light-grey" onload="cv['onRuntimeInitialized']=()=>{ load_cascade() }">
<body class="w3-light-grey">
<!-- w3-content defines a container for fixed size centered content,
and is wrapped around the whole page content, except for the footer in this example -->
<div class="w3-content" style="max-width:1400px">
<!-- Header -->
<div class="w3-content" style="max-width:1400px">
<!-- Header -->
<header class="w3-container w3-center w3-padding-32">
<h1><b>얼굴 등록</b></h1>
<p>Made by <span class="w3-tag">정해갑</span></p>
......@@ -126,7 +127,7 @@ and is wrapped around the whole page content, except for the footer in this exam
<input id="sender" type="button" onclick="submit" value="등록" disabled>
</div>
</div>
</div>
</div>
</body>
</html>
......