Merge pull request #21843 from Rufflewind:doc

pull/22054/head
Alexander Alekhin 3 years ago
commit 7459954377
  1. 9
      doc/js_tutorials/js_setup/js_usage/js_usage.markdown

@ -122,11 +122,14 @@ imgElement.onload = function() {
mat.delete(); mat.delete();
}; };
function onOpenCvReady() { var Module = {
// https://emscripten.org/docs/api_reference/module.html#Module.onRuntimeInitialized
onRuntimeInitialized() {
document.getElementById('status').innerHTML = 'OpenCV.js is ready.'; document.getElementById('status').innerHTML = 'OpenCV.js is ready.';
} }
};
</script> </script>
<script async src="opencv.js" onload="onOpenCvReady();" type="text/javascript"></script> <script async src="opencv.js" type="text/javascript"></script>
</body> </body>
</html> </html>
@endcode @endcode

Loading…
Cancel
Save