Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ The `CaptureVisionRouter` class defines how a user interacts with image-processi

### Multiple-Image Processing

| Name | Description |
| ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [setInput()](./multiple-image-processing.md#setinput) | Sets up an image source to provide images for continuous processing. |
| [getInput()](./multiple-image-processing.md#getinput) | Returns the image source object. |
| [addResultReceiver()](./multiple-image-processing.md#addresultreceiver) | Adds a `CapturedResultReceiver` object as the receiver of captured results. |
| [removeResultReceiver()](./multiple-image-processing.md#removeresultreceiver) | Removes the specified `CapturedResultReceiver` object. |
| [addResultFilter()](./multiple-image-processing.md#addresultfilter) | Adds a `MultiFrameResultCrossFilter` object to filter non-essential results. |
| [removeResultFilter()](./multiple-image-processing.md#removeresultfilter) | Removes the specified `MultiFrameResultCrossFilter` object. |
| [startCapturing()](./multiple-image-processing.md#startcapturing) | Initiates a capturing process based on a specified template. |
| [stopCapturing()](./multiple-image-processing.md#stopcapturing) | Stops the capturing process. |
| Name | Description |
| ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| [setInput()](./multiple-image-processing.md#setinput) | Sets up an image source to provide images for continuous processing. |
| [getInput()](./multiple-image-processing.md#getinput) | Returns the image source object. |
| [addResultReceiver()](./multiple-image-processing.md#addresultreceiver) | Adds a `CapturedResultReceiver` object as the receiver of captured results. |
| [removeResultReceiver()](./multiple-image-processing.md#removeresultreceiver) | Removes the specified `CapturedResultReceiver` object. |
| [addResultFilter()](./multiple-image-processing.md#addresultfilter) | Adds a `MultiFrameResultCrossFilter` object to filter non-essential results. |
| [removeResultFilter()](./multiple-image-processing.md#removeresultfilter) | Removes the specified `MultiFrameResultCrossFilter` object. |
| [startCapturing()](./multiple-image-processing.md#startcapturing) | Initiates a capturing process based on a specified template. |
| [stopCapturing()](./multiple-image-processing.md#stopcapturing) | Stops the capturing process. |
| [switchCapturingTemplate()](./multiple-image-processing.md#switchcapturingtemplate) | Switches the currently active capturing template during the image processing workflow. |

<!-- | [addImageSourceStateListener()](./multiple-image-processing.md#addimagesourcestatelistener) | Adds an `ImageSourceStateListener` object that monitors changes in the state of an image source. |
| [removeImageSourceStateListener()](./multiple-image-processing.md#removeimagesourcestatelistener) | Removes the specified `ImageSourceStateListener` object. | -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ breadcrumbText: CVR JavaScript CaptureVisionRouter

# CaptureVisionRouter Multiple Image Processing

| Name | Description |
| ----------------------------------------------- | ---------------------------------------------------------------------------- |
| [setInput()](#setinput) | Sets up an image source to provide images for continuous processing. |
| [getInput()](#getinput) | Returns the image source object. |
| [addResultReceiver()](#addresultreceiver) | Adds a `CapturedResultReceiver` object as the receiver of captured results. |
| [removeResultReceiver()](#removeresultreceiver) | Removes the specified `CapturedResultReceiver` object. |
| [addResultFilter()](#addresultfilter) | Adds a `MultiFrameResultCrossFilter` object to filter non-essential results. |
| [removeResultFilter()](#removeresultfilter) | Removes the specified `MultiFrameResultCrossFilter` object. |
| [startCapturing()](#startcapturing) | Initiates a capturing process based on a specified template. |
| [stopCapturing()](#stopcapturing) | Stops the capturing process. |
| Name | Description |
| ----------------------------------------------------- | -------------------------------------------------------------------------------------- |
| [setInput()](#setinput) | Sets up an image source to provide images for continuous processing. |
| [getInput()](#getinput) | Returns the image source object. |
| [addResultReceiver()](#addresultreceiver) | Adds a `CapturedResultReceiver` object as the receiver of captured results. |
| [removeResultReceiver()](#removeresultreceiver) | Removes the specified `CapturedResultReceiver` object. |
| [addResultFilter()](#addresultfilter) | Adds a `MultiFrameResultCrossFilter` object to filter non-essential results. |
| [removeResultFilter()](#removeresultfilter) | Removes the specified `MultiFrameResultCrossFilter` object. |
| [startCapturing()](#startcapturing) | Initiates a capturing process based on a specified template. |
| [stopCapturing()](#stopcapturing) | Stops the capturing process. |
| [switchCapturingTemplate()](#switchcapturingtemplate) | Switches the currently active capturing template during the image processing workflow. |

<!--
| [addImageSourceStateListener()](#addimagesourcestatelistener) | Adds an `ImageSourceStateListener` object that monitors changes in the state of an image source. |
Expand Down Expand Up @@ -389,3 +390,34 @@ await router.startCapturing("ReadSingleBarcode");
// ...
router.stopCapturing();
```

## switchCapturingTemplate

Switches the currently active capturing template during the image processing workflow. This allows dynamic reconfiguration of the capture process without restarting or reinitializing the system, enabling different settings or rules to be applied on the fly.

**Syntax**

```typescript
switchCapturingTemplate(templateName: string): Promise<void>;
```

**Parameters**

`templateName`: The name of the new capturing template to apply.

**Return Value**

A promise that resolves when the operation has completed.

**Code snippet**

```javascript
let router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
await router.startCapturing("ReadSingleBarcode");
// Switching to ReadRateFirst template
await router.switchCapturingTemplate("ReadBarcodes_ReadRateFirst");
```

**Remarks**

Introduced in Dynamsoft Barcode Reader Bundle version 11.2.2000 and Dynamsoft Capture Vision Bundle version 3.2.2000.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ breadcrumbText: CVR JavaScript CaptureVisionRouter
| [getTemplateNames()](#gettemplatenames) | Retrieves the names of all the currently available templates. |
| [updateSettings()](#updatesettings) | Updates the specified `CaptureVisionTemplate` with an updated `SimplifiedCaptureVisionSettings` object. |
| [resetSettings()](#resetsettings) | Restores all runtime settings to their original default values. |
| [switchCapturingTemplate()](#switchcapturingtemplate) | Switches the currently active capturing template during the image processing workflow. |


## initSettings

Expand Down Expand Up @@ -236,34 +234,3 @@ A promise that resolves when the operation has completed. It provides an object
let router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
await router.resetSettings();
```

## switchCapturingTemplate

Switches the currently active capturing template during the image processing workflow. This allows dynamic reconfiguration of the capture process without restarting or reinitializing the system, enabling different settings or rules to be applied on the fly.

**Syntax**

```typescript
switchCapturingTemplate(templateName: string): Promise<void>;
```

**Parameters**

`templateName`: The name of the new capturing template to apply.

**Return Value**

A promise that resolves when the operation has completed.

**Code snippet**

```javascript
let router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
await router.startCapturing("ReadSingleBarcode");
// Switching to ReadRateFirst template
await router.switchCapturingTemplate("ReadBarcodes_ReadRateFirst");
```

**Remarks**

Introduced in Dynamsoft Barcode Reader Bundle version 11.2.2000 and Dynamsoft Capture Vision Bundle version 3.2.2000.
2 changes: 1 addition & 1 deletion programming/javascript/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Implementing DCV, regardless of platform or language, involves three stages: inp

- `Image Processing`: DCV processes the images to derive information, powered by Dynamsoft's cutting-edge algorithms. To ensure efficient operation in web environments like browsers, these algorithms are compiled into [WebAssembly](https://developer.mozilla.org/en-US/docs/WebAssembly) modules (.wasm files). These modules are large in size, and DCV can asynchronously preload them into the web page to enhance user experience.

- `Output`: The derived information is made available to other business logic through the [Captured Result Receiver (CRR)](https://www.dynamsoft.com/capture-vision/docs/core/architecture/output.html#captured-result-receiver) interface. In web applications, real-time interaction is crucial. DCV leverages Dynamsoft Camera Enhancers UI functionality to display results at runtime and, in some cases, allows user intervention to improve results.
- `Output`: The derived information is made available to other business logic through the [Captured Result Receiver (CRR)](https://www.dynamsoft.com/capture-vision/docs/core/architecture/output.html#captured-result-receiver) interface. In web applications, real-time interaction is crucial. DCV leverages Dynamsoft Camera Enhancer's UI functionality to display results at runtime and, in some cases, allows user intervention to improve results.

## Using the SDK

Expand Down
2 changes: 1 addition & 1 deletion programming/javascript/user-guide/mrz-scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ MRZ Scanner

## Building your own page

In this section, well walk through the key steps needed to build a web page that reads the machine-readable zone (MRZ) on a passport or ID.
In this section, we'll walk through the key steps needed to build a web page that reads the machine-readable zone (MRZ) on a passport or ID.

### Include the SDK

Expand Down