提交 e9058ea8 编写于 作者: R Rui Hou

Easier access to opencv.js in tutorial

上级 fd06139c
Build OpenCV.js {#tutorial_js_setup} Build OpenCV.js {#tutorial_js_setup}
=============================== ===============================
@note
You don't have to build your own copy if you simply want to start using it. Refer the Using Opencv.js tutorial for steps on getting a prebuilt copy from our releases or online documentation.
Installing Emscripten Installing Emscripten
----------------------------- -----------------------------
......
...@@ -4,7 +4,7 @@ Using OpenCV.js {#tutorial_js_usage} ...@@ -4,7 +4,7 @@ Using OpenCV.js {#tutorial_js_usage}
Steps Steps
----- -----
In this tutorial, you will learn how to include and start to use `opencv.js` inside a web page. In this tutorial, you will learn how to include and start to use `opencv.js` inside a web page. You can get a copy of `opencv.js` from `opencv-{VERSION_NUMBER}-docs.zip` in each [release](https://github.com/opencv/opencv/releases), or simply download the prebuilt script from the online documentations at "https://docs.opencv.org/{VERISON_NUMBER}/opencv.js" (For example, [https://docs.opencv.org/3.4.0/opencv.js](https://docs.opencv.org/3.4.0/opencv.js). Use `master` if you want the latest build). You can also build your own copy by following the tutorial on Build Opencv.js.
### Create a web page ### Create a web page
...@@ -44,7 +44,7 @@ To run this web page, copy the content above and save to a local index.html file ...@@ -44,7 +44,7 @@ To run this web page, copy the content above and save to a local index.html file
Set the URL of `opencv.js` to `src` attribute of \<script\> tag. Set the URL of `opencv.js` to `src` attribute of \<script\> tag.
@note For this tutorial, we host `opencv.js` at same folder as index.html. @note For this tutorial, we host `opencv.js` at same folder as index.html. You can also choose to use the URL of the prebuilt `opencv.js` in our online documentation.
Example for synchronous loading: Example for synchronous loading:
@code{.js} @code{.js}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册