Skip to content

opencv.js: face recognition sample doesn't work for the WASM version of opencv.js #14734

@Wenzhao-Xiang

Description

@Wenzhao-Xiang
System information (version)
  • OpenCV => opencv.js 4.1.0-dev
  • Operating System / Platform => Version 74.0.3729.157 (Official Build) unknown (64-bit)
  • Compiler => opencv.js WASM build from master branch as described here.
Detailed description

Now the sample of face recognition with opencv.js just work for the asm.js version of, and doesn't work for the WASM version of opencv.js, saying cv.Mat is not a constructor in the console.log. Seems we need cv.onRuntimeInitialized=()=>{} for the loading of opencv.js WASM.

Steps to reproduce

Go to here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions