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/be5b59868d1bcb10b317b7f839fd2b08
What is confusing is that the core libraries, which contain cv.MatFromArray are included in the build.
Therefore I should not be getting this error message! Please help.
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