DFT MATLAB Source Code and opencv.js-wechat WeChat Mini-program lib for opencv.js version 4.3.0 runs using WebAssembly. To try the demo, import the project from demo\\miniprogram
into the developer tools, then preview it. Open debugging on your phone and follow these steps:
- Click 'Get wasm' and wait 5-10 seconds for initialization to complete.
- Tap 'Grayscale Lena' to check if the grayscale Lena image displays correctly.
- Click 'Capture Camera'; after a 5-10 second load, verify if it successfully tracks the face (red box) and eyes (blue box).
Server-side setup: Execute npx http-server ./
in demo\\server
, then open the browser to initialize with:
API wasm.init({
url: \"http://www.aiotforest.com/opencv.zip\", // wasm or zip file URL
type: \"zip\", // format: wasm or zip (contains only compressed wasm)
useCache: true, // enable cache to save wasm to user files, reducing future data usage
self: this,
...
});