You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -42,4 +42,4 @@ Get the basic features of the library working with plain/native JavaScript or wi
42
42
43
43
### Others
44
44
45
-
*[**Debug**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/other/debug#readme): Collect the actual image frames for debugging purposes.
45
+
*[**Debug**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/others/debug#readme): Collect the actual image frames for debugging purposes.
Copy file name to clipboardExpand all lines: hello-world/README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -13,26 +13,26 @@ In this example, you will learn the minimum codes required to initialize and set
13
13
Let's quickly break down the methods used in order:
14
14
15
15
-`Dynamsoft.License.LicenseManager.initLicense()`: This method initializes the license for using the SDK in the application.
16
-
-`Dynamsoft.CVR.CaptureVisionRouter.createInstance()`: This method creates a `CaptureVisionRouter` object `router` which controls the entire process in three steps:
16
+
-`Dynamsoft.CVR.CaptureVisionRouter.createInstance()`: This method creates a `CaptureVisionRouter` object `cvRouter` which controls the entire process in three steps:
17
17
-**Retrieve Images from the Image Source**
18
-
-`router` connects to the image source through the [`Image Source Adapter`](https://www.dynamsoft.com/capture-vision/docs/core/architecture/input.html#image-source-adapter?lang=js) interface with the method `setInput()`.
18
+
-`cvRouter` connects to the image source through the [`Image Source Adapter`](https://www.dynamsoft.com/capture-vision/docs/core/architecture/input.html#image-source-adapter?lang=js) interface with the method `setInput()`.
19
19
```js
20
-
router.setInput(cameraEnhancer);
20
+
cvRouter.setInput(cameraEnhancer);
21
21
```
22
22
> The image source in our case is a CameraEnhancer object created with`Dynamsoft.DCE.CameraEnhancer.createInstance(view)`
23
23
-**Coordinate Image-Processing Tasks**
24
-
- The coordination happens behind the scenes. `router` starts the process by specifying a preset template "ReadSingleBarcode"with the method `startCapturing()`.
24
+
- The coordination happens behind the scenes. `cvRouter` starts the process by specifying a preset template "ReadSingleBarcode"with the method `startCapturing()`.
25
25
```js
26
-
router.startCapturing("ReadSingleBarcode");
26
+
cvRouter.startCapturing("ReadSingleBarcode");
27
27
```
28
28
-**Dispatch Results to Listening Objects**
29
-
- The processing results are returned through the [`CapturedResultReceiver`](https://www.dynamsoft.com/capture-vision/docs/core/architecture/output.html#captured-result-receiver?lang=js) interface. The `CapturedResultReceiver` object `resultReceiver` is registered to `router` via the method `addResultReceiver()`.
29
+
- The processing results are returned through the [`CapturedResultReceiver`](https://www.dynamsoft.com/capture-vision/docs/core/architecture/output.html#captured-result-receiver?lang=js) interface. The `CapturedResultReceiver` object `resultReceiver` is registered to `cvRouter` via the method `addResultReceiver()`.
30
30
```js
31
-
router.addResultReceiver(resultReceiver);
31
+
cvRouter.addResultReceiver(resultReceiver);
32
32
```
33
-
- Also note that reading from video is extremely fast and there could be many duplicate results. We can use a `MultiFrameResultCrossFilter` object with result deduplication enabled to filter out the duplicate results. The object is registered to `router` via the method `addResultFilter()`.
33
+
- Also note that reading from video is extremely fast and there could be many duplicate results. We can use a `MultiFrameResultCrossFilter` object with result deduplication enabled to filter out the duplicate results. The object is registered to `cvRouter` via the method `addResultFilter()`.
34
34
```js
35
-
router.addResultFilter(filter);
35
+
cvRouter.addResultFilter(filter);
36
36
```
37
37
38
38
> Read more on [Capture Vision Router](https://www.dynamsoft.com/capture-vision/docs/core/architecture/#capture-vision-router).
0 commit comments