Ask Your Question

Revision history [back]

how to include opencv.js and opencv.wasm into html?

I've build an opencv.js using this tutorial (https://docs.opencv.org/3.3.1/d4/da1/tutorial_js_setup.html). The asm version works fine, but I've problems with the wasm version.

The python script build_js.py creates 3 files in the bin folder: opencv.js, opencv_js.js and opencv_js.wasm. What is the opencv_js.js for and how can I include the .js and the .wasm file into a html file? Unfortunately this is not documented in the tutorial.