Graduate

Update flask

......@@ -17,7 +17,7 @@ function load_cascade()
let faceCascadeURL = 'static/js/haarcascade_frontalface_default.xml'
let utils = new Utils('errorMessage');
utils.createFileFromUrl(faceCascadeFile, faceCascadeURL, () => {
activate()
activate();
});
}
function activate()
......@@ -81,7 +81,7 @@ function submit()
alert("등록 성공");
}
else{
alert("등록 실패")
alert("등록 실패");
}
}
})
......@@ -90,10 +90,10 @@ function submit()
var loadFile = function(event) {
var reader = new FileReader();
reader.readAsDataURL(event.target.files[0]);
output.onload = function() {
reader.onload = function() {
var output = document.getElementById('imagefile');
output.src = URL.createObjectURL(event.target.files[0]);
detect_face()
detect_face();
}
};
......