mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
c82417697a
[GSoC] OpenCV.js: WASM SIMD optimization 2.0 * gsoc_2020_simd Add perf test for filter2d * add perf test for kernel scharr and kernel gaussianBlur * add perf test for blur, medianBlur, erode, dilate * fix the errors for the opencv PR robot fix the trailing whitespace. * add perf tests for kernel remap, warpAffine, warpPersepective, pyrDown * fix a bug in modules/js/perf/perf_imgproc/perf_remap.js * add function smoothBorder in helpfun.js and remove replicated function in perf test of warpAffine and warpPrespective * fix the trailing white space issues * add OpenCV.js loader * Implement the Loader with help of WebAssembly Feature Detection, remove trailing whitespaces * modify the explantion for loader in js_setup.markdown and fix bug in loader.js |
||
---|---|---|
.. | ||
build_js.py | ||
opencv_js.config.py | ||
README.md |
Building OpenCV.js by Emscripten
Download and install Emscripten.
Execute build_js.py
script:
python <opencv_src_dir>/platforms/js/build_js.py <build_dir>
If everything is fine, a few minutes later you will get <build_dir>/bin/opencv.js
. You can add this into your web pages.
Find out more build options by -h
switch.
For detailed build tutorial, check out <opencv_src_dir>/doc/js_tutorials/js_setup/js_setup/js_setup.markdown
.