forked from opencv/opencv
-
Notifications
You must be signed in to change notification settings - Fork 11
Home
Ningxin Hu edited this page Sep 21, 2017
·
15 revisions
To Install Emscripten, follow instructions of Emscripten SDK
$ git clone https://github.com/huningxin/opencv.git$ python ./platforms/js/build_js.py build_js$ python ./platforms/js/build_js.py build_js --build_test
$ cd bin
$ http-serverLaunch browser to http://localhost:8080.
Tests include:
- tests.html
$ cd bin
$ npm install
$ node tests.jsThis will create offline version of OpenCV's complete official documentation in HTML. First, install Doxygen (a documentation generation tool).
$ apt-get install doxygenThen, execute command
$ python ./platforms/js/build_js.py build_js --build_docAfter build succeeds, open build_js/doc/doxygen/html/index.html in the browser.
Install eslint, eslint-config-google and eslint-plugin-html:
$ npm install -g eslint
$ npm install -g eslint-config-google
$ npm install -g eslint-plugin-htmlLint tests:
$ cd modules/js/test
$ eslint *.jsLint docs:
$ cd doc/js_tutorials/js_assets
$ eslint *.htmlhttps://docs.google.com/spreadsheets/d/1uUbKcXBRVDX9oHp6cTCvvSqozqz42BaRcznwxwGFUEM/edit#gid=0