Graduate

Opencv.js face detection

......@@ -41,9 +41,6 @@ if (navigator.mediaDevices.getUserMedia){
}
</script>
<script>
function openCvReady() {
cv['onRuntimeInitialized']=()=>{
// do all your work here
let video = document.getElementById('videoElement');
let src = new cv.Mat(video.height, video.width, cv.CV_8UC4);
let dst = new cv.Mat(video.height, video.width, cv.CV_8UC4);
......@@ -86,8 +83,6 @@ function openCvReady() {
}
// schedule the first one.
setTimeout(processVideo, 0);
};
}
</script>
</body>
</html>
......