Opencv.js build does not contain cv.matfromarray

asked 2020-07-18 10:50:42 -0600

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.

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
edit retag flag offensive close merge delete

Comments

i have no idea, but maybe you can check, if you can use other functions from here

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

no, it's a seperate script (not generated from the c++ code)

berak gravatar imageberak ( 2020-07-19 02:26:38 -0600 )edit