Merge pull request #19162 from alalek:backport_18985
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Fri, 18 Dec 2020 20:29:49 +0000 (20:29 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Fri, 18 Dec 2020 20:29:49 +0000 (20:29 +0000)
1  2 
doc/js_tutorials/js_setup/js_setup/js_setup.markdown
modules/js/generator/embindgen.py

@@@ -128,9 -124,16 +128,16 @@@ Building OpenCV.js from Sourc
  
      For example:
      @code{.bash}
 -    python ./platforms/js/build_js.py build_js --build_test
 +    emcmake python ./opencv/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
  ---------------------------------------
  
Simple merge