Skip to content

loadOpencv sometimes never resolves #19

@PeterBenko

Description

@PeterBenko

The call to Mirada.loadOpencv never resolves if opencvJsLocation points to a opencv.js that loads opencv_js.wasm. (self-compiled 4.4.0 if that matters).

This is due to the fact that cv.onRuntimeInitialized gets assigned only after the "load" callback here, at which point opencv.js already checks the global cv variable, and assigns a new empty object to its Module variable and then doesn't see an "onRuntimeInitialized" property to call when done with the initialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions