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-server
Launch browser to http://localhost:8080
.
Tests include:
- tests.html
$ cd bin
$ npm install
$ node tests.js
This will create offline version of OpenCV's complete official documentation in HTML. First, install Doxygen (a documentation generation tool).
$ apt-get install doxygen
Then, execute command
$ python ./platforms/js/build_js.py build_js --build_doc
After 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-html
Lint tests:
$ cd modules/js/test
$ eslint *.js
Lint docs:
$ cd doc/js_tutorials/js_assets
$ eslint *.html
https://docs.google.com/spreadsheets/d/1uUbKcXBRVDX9oHp6cTCvvSqozqz42BaRcznwxwGFUEM/edit#gid=0