Skip to content

Commit

Permalink
dbrjs bundle 10.2.1000 (#169)
Browse files Browse the repository at this point in the history
* rename dynamic component

* dbr bundle

* dbr bundle

* review half

* review, vue has done

* review done

* v

* reset value so works in React.StrictMode

* 10.2.1000 official

---------

Co-authored-by: Cube <877211593@qq.com>
  • Loading branch information
Keillion and Cube-J authored May 23, 2024
1 parent d0e9a0f commit 1519bcf
Show file tree
Hide file tree
Showing 100 changed files with 2,091 additions and 3,503 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ Get the basic features of the library working with plain/native JavaScript or wi

### Others

* [**Debug**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/other/debug#readme): Collect the actual image frames for debugging purposes.
* [**Debug**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/others/debug#readme): Collect the actual image frames for debugging purposes.
18 changes: 9 additions & 9 deletions hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ In this example, you will learn the minimum codes required to initialize and set
Let's quickly break down the methods used in order:

- `Dynamsoft.License.LicenseManager.initLicense()`: This method initializes the license for using the SDK in the application.
- `Dynamsoft.CVR.CaptureVisionRouter.createInstance()`: This method creates a `CaptureVisionRouter` object `router` which controls the entire process in three steps:
- `Dynamsoft.CVR.CaptureVisionRouter.createInstance()`: This method creates a `CaptureVisionRouter` object `cvRouter` which controls the entire process in three steps:
- **Retrieve Images from the Image Source**
- `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()`.
- `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()`.
```js
router.setInput(cameraEnhancer);
cvRouter.setInput(cameraEnhancer);
```
> The image source in our case is a CameraEnhancer object created with `Dynamsoft.DCE.CameraEnhancer.createInstance(view)`
- **Coordinate Image-Processing Tasks**
- The coordination happens behind the scenes. `router` starts the process by specifying a preset template "ReadSingleBarcode" with the method `startCapturing()`.
- The coordination happens behind the scenes. `cvRouter` starts the process by specifying a preset template "ReadSingleBarcode" with the method `startCapturing()`.
```js
router.startCapturing("ReadSingleBarcode");
cvRouter.startCapturing("ReadSingleBarcode");
```
- **Dispatch Results to Listening Objects**
- 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()`.
- 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()`.
```js
router.addResultReceiver(resultReceiver);
cvRouter.addResultReceiver(resultReceiver);
```
- 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()`.
- 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()`.
```js
router.addResultFilter(filter);
cvRouter.addResultFilter(filter);
```

> Read more on [Capture Vision Router](https://www.dynamsoft.com/capture-vision/docs/core/architecture/#capture-vision-router).
Expand Down
4 changes: 3 additions & 1 deletion hello-world/angular/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.

# Compiled output
/dist
Expand Down Expand Up @@ -40,3 +40,5 @@ testem.log
# System files
.DS_Store
Thumbs.db

package-lock.json
Loading

0 comments on commit 1519bcf

Please sign in to comment.