Skip to content

[OpenCV JS] 'cv' is undefined in helper scope, should be named 'Module' #24620

@simonbuehler

Description

@simonbuehler

hi,

i always got cv.matFromImageData undefined error in a wasm build around:

return cv.matFromImageData(imgData);

as explained in this emscripten-core/emscripten#20801 (comment) issue, the internal Name "Module" should be used instead of the external name "cv".

i added a var cv = Module; at the beginning of the block and it fixed this, after the comment in the other issue just replacing cv. with Module. did also the trick!

would be great if that could be fixed!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions