Skip to content

Commit df31e85

Browse files
update to internal commit d5204142
1 parent 647797f commit df31e85

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

programming/javascript/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ The following lines of code is all that is required to create a web page that sc
3737
<textarea id="results" style="width: 100%; min-height: 10vh; font-size: 3vmin; overflow: auto" disabled></textarea>
3838
<script>
3939
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
40+
Dynamsoft.Core.CoreModule.loadWasm(["dbr"]);
4041
(async () => {
4142
let router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
4243

programming/javascript/user-guide/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ The complete code of the "Hello World" example is shown below
161161

162162
- `Dynamsoft.License.LicenseManager.initLicense()`: This method initializes the license for using the SDK in the application. Note that the string "**DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9**" used in this example points to an online license that requires a network connection to work. Read more on [Specify the license](#specify-the-license).
163163

164+
- `Dynamsoft.Core.CoreModule.loadWasm(["dbr"])`: This is an optional code. Used to load wasm resources in advance, reducing latency between video playing and barcode decoding.
165+
164166
- `Dynamsoft.CVR.CaptureVisionRouter.createInstance()`: This method creates a `CaptureVisionRouter` object `router` which controls the entire process in three steps:
165167
- **Retrieve Images from the Image Source**
166168
- `router` connects to the image source through the [ImageSourceAdapter](https://www.dynamsoft.com/capture-vision/docs/core/architecture/input.html#image-source-adapter?lang=js){:target="_blank"} interface with the method `setInput()`.

0 commit comments

Comments
 (0)