mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
![]() Remove torch (old torch7) from dnn in 5.x #24294 Merge with https://github.com/opencv/opencv_extra/pull/1097 Completely removed torch (old torch7) from dnn: - removed modules/dnn/src/torch directory that contained torch7 model parser - removed readNetFromTorch() and readTorchBlob() public functions - removed torch7 references from comments and help texts - replaced links to t7 models by links to similar onnx models in js_style_transfer turtorial (similar to https://github.com/opencv/opencv/pull/24245/files) |
||
---|---|---|
.. | ||
build_js.py | ||
opencv_js.config.py | ||
README.md |
Building OpenCV.js by Emscripten
Download and install Emscripten.
Execute build_js.py
script:
emcmake 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
.