Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo中的wasm.br直接替换成自己的可以吗? #1

Open
JKangTan opened this issue Mar 18, 2022 · 3 comments
Open

demo中的wasm.br直接替换成自己的可以吗? #1

JKangTan opened this issue Mar 18, 2022 · 3 comments

Comments

@JKangTan
Copy link

demo中的wasm.br直接替换成自己的可以吗?实验报错了。我的protli压缩命令:time brotli -q 11 -j -f opencv_js.wasm

@sanyuered
Copy link
Owner

1、运行opencv_js.wasm,需要2个文件。一个是.wasm,另一个是opencv.js。本项目是opencv 3.4.16,你使用其他版本号opencv的wasm,可能会发生2个文件不匹配的问题。可以按照项目中的opencv.js修改方法,将其他版本号的opencv.js修改为适配小程序。
2、与protli压缩没有关系。
3、项目中opencv.js是3.4.16版本,包含常用API,但不包含全部API。如果编译opencv 3.4.16全部功能,也可能发生opencv.js和opencv.js.wasm不匹配的问题。

@liaoerduo
Copy link

确实如[sanyuered]所言,我重新编译opencv后,就出现了opencv.js和opencv_js.wasm不匹配问题,请问各位,我修改了opencv.js后是不是需要重新生成opencv_js.wasm?如果需要重新编译opencv_js.wasm,那我需要把修改后的opencv.js放在哪个目录下重新编译呢?

@liaoerduo
Copy link

或者麻烦sanyuered或者其他有编译环境的同学,帮忙编译一个完整版的适用于微信小程序的opencv_js.wasm和配套的opencv.js文件,不胜感激!文件大点没关系,主要想全面学习一下微信下的opencv的各个功能模块!我的wx号:huang6wx,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants