js: backport PR18985

original commit: b82700ae41
This commit is contained in:
Steffen Urban
2020-12-18 13:01:48 +01:00
committed by Alexander Alekhin
parent 9b4adc9acb
commit c2bc171ef6
3 changed files with 15 additions and 4 deletions
@@ -127,6 +127,13 @@ Building OpenCV.js from Source
python ./platforms/js/build_js.py build_js --build_test
@endcode
-# [optional] To enable OpenCV contrib modules append `--cmake_option="-DOPENCV_EXTRA_MODULES_PATH=/path/to/opencv_contrib/modules/"`
For example:
@code{.bash}
python ./platforms/js/build_js.py build_js --cmake_option="-DOPENCV_EXTRA_MODULES_PATH=opencv_contrib/modules"
@endcode
Running OpenCV.js Tests
---------------------------------------