Graduate

Update flask

......@@ -11,7 +11,6 @@
<script type='text/javascript' src="{{url_for('static', filename='js/utils.js')}}"></script>
<script type='text/javascript' src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script type='text/javascript'>
let tempCanvas = document.createElement("canvas");
function load_cascade()
{
let faceCascadeFile = 'haarcascade_frontalface_default.xml'
......@@ -76,7 +75,7 @@ function submit()
type: "POST",
url: "/register",
dataType: "json",
data: {'image':b64encoded, 'student_id':student_id 'student_name':student_name},
data: {'image':b64encoded, 'student_id':student_id, 'student_name':student_name},
success: function(data){
if (data.status == "success"){
alert("등록 성공");
......@@ -98,13 +97,10 @@ var loadFile = function(event) {
}
};
cv['onRuntimeInitialized']=()=>{
load_cascade();
};
let tempCanvas = document.createElement("canvas");
</script>
</head>
<body class="w3-light-grey">
<body onload="cv['onRuntimeInitialized']=()=>{load_cascade();};" 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">
......