Graduate

Opencv.js face detection

...@@ -83,7 +83,9 @@ if (navigator.mediaDevices.getUserMedia){ ...@@ -83,7 +83,9 @@ if (navigator.mediaDevices.getUserMedia){
83 } 83 }
84 } 84 }
85 // schedule the first one. 85 // schedule the first one.
86 - setTimeout(processVideo, 0); 86 + cv['onRuntimeInitialized']=()=>{
87 + setTimeout(processVideo, 0);
88 + }
87 </script> 89 </script>
88 </body> 90 </body>
89 </html> 91 </html>
......