mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 12:10:49 +08:00
c2096771cb
[GSoC 2019] Improve the performance of JavaScript version of OpenCV (OpenCV.js) * [GSoC 2019] Improve the performance of JavaScript version of OpenCV (OpenCV.js): 1. Create the base of OpenCV.js performance test: This perf test is based on benchmark.js(https://benchmarkjs.com). And first add `cvtColor`, `Resize`, `Threshold` into it. 2. Optimize the OpenCV.js performance by WASM threads: This optimization is based on Web Worker API and SharedArrayBuffer, so it can be only used in browser. 3. Optimize the OpenCV.js performance by WASM SIMD: Add WASM SIMD backend for OpenCV Universal Intrinsics. It's experimental as WASM SIMD is still in development. * [GSoC2019] 1. use short license header 2. fix documentation node issue 3. remove the unused `hasSIMD128()` api * [GSoC2019] 1. fix emscripten define 2. use fallback function for f16 * [GSoC2019] Fix rebase issue |
||
---|---|---|
.. | ||
build_js.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
.