Merge pull request #21843 from Rufflewind:doc
This commit is contained in:
commit
7459954377
@ -122,11 +122,14 @@ imgElement.onload = function() {
|
|||||||
mat.delete();
|
mat.delete();
|
||||||
};
|
};
|
||||||
|
|
||||||
function onOpenCvReady() {
|
var Module = {
|
||||||
document.getElementById('status').innerHTML = 'OpenCV.js is ready.';
|
// https://emscripten.org/docs/api_reference/module.html#Module.onRuntimeInitialized
|
||||||
}
|
onRuntimeInitialized() {
|
||||||
|
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…
Reference in New Issue
Block a user