Opencv.js build does not contain cv.matfromarray

I followed this tutorial and built opencv.js. When I try to use the generated file I get the error that cv.MatFromArray is undefined.

You can see the contents of build_js.py I use in the gist below (I use it unedited in the build process); the commands that cmake takes lets it include or exclude certain modules.

https://gist.github.com/tomatopuree/b...

What is confusing is that the core libraries, which contain cv.MatFromArray are included in the build.

The command I use to build opencv.js (although probably not relevant to this problem since the build succeeds):

python ./platforms/js/build_js.py build_wasm --build_wasm --emscripten_dir=/opencv_builds/emsdk/upstream/emscripten

edit retag close merge delete