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

CmakeLists.txt #2

Open
leiyu2 opened this issue Apr 6, 2022 · 1 comment
Open

CmakeLists.txt #2

leiyu2 opened this issue Apr 6, 2022 · 1 comment

Comments

@leiyu2
Copy link

leiyu2 commented Apr 6, 2022

请问下您的opencv_exec.js是怎么生成的,可以把CmakeLists.txt分享出来吗?多谢。

@sanyuered
Copy link
Owner

opencv_exec.js的生成方法:
1、下载https://docs.opencv.org/3.4.0/opencv.js
2、opencv.js文件中变量wasmBinaryFile是一个Base64编码,将该Base64编码转换为二进制文件,修改该二进制文件的扩展名为.wasm,这个是wasm版本的opencv。
3、opencv.js文件剩余的代码就是opencv_exec.js,opencv_exec.js是opencv.js名称的重命名。

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

2 participants