Skip to content

Commit 3a1b616

Browse files
Merge pull request #384 from dynamsoft-docs/preview
update to internal commit 50c4cb36
2 parents d8137a1 + 1e63e7f commit 3a1b616

26 files changed

+76
-271
lines changed

programming-old/javascript/api-reference/BarcodeScanner/properties-v7.6.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ permalink: /programming/javascript/api-reference/BarcodeScanner/properties-v7.6.
2020
| [regionMaskFillStyle](#regionmaskfillstyle) | Set the style used when filling the mask beyond the region. |
2121
| `regionMaskLineWidth` | Set the width of the region border. |
2222
| [regionMaskStrokeStyle](#regionmaskstrokestyle) | Set the style of the region border. |
23-
| [onFrameRead](#onframeread) | Triggered a frame has been scanned. |
23+
| [onFrameRead](#onframeread) | Triggered when a frame has been scanned. |
2424
| [onPlayed](#onplayed) | Triggered when the camera video stream is played. |
2525
| [onUnduplicatedRead](#onunduplicatedread) | Triggered when a new, unduplicated barcode is found. |
2626

programming-old/javascript/api-reference/BarcodeScanner/properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ permalink: /programming/javascript/api-reference/BarcodeScanner/properties.html
4141
| [regionMaskFillStyle](#regionmaskfillstyle) | Set the style used when filling the mask beyond the region. |
4242
| `regionMaskLineWidth` | Set the width of the region border. |
4343
| [regionMaskStrokeStyle](#regionmaskstrokestyle) | Set the style of the region border. |
44-
| [onFrameRead](#onframeread) | Triggered a frame has been scanned. |
44+
| [onFrameRead](#onframeread) | Triggered when a frame has been scanned. |
4545
| [onPlayed](#onplayed) | Triggered when the camera video stream is played. |
4646
| [onUnduplicatedRead](#onunduplicatedread) | Triggered when a new, unduplicated barcode is found. |
4747
| [singleFrameMode](#singleframemode) | If set to `true`, single video frames will be used instead of a continuous video stream. |

programming/javascript/faq/add-remove-beep-sound.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,6 @@ needAutoGenerateSidebar: false
1010

1111
[<< Back to FAQ index](index.md)
1212

13-
## Version 10
14-
This feature is controlled by the `Dynamsoft Camera Enhancer` module.
15-
16-
```javascript
17-
Dynamsoft.DCE.Feedback.beep();
18-
```
19-
**_NOTE:_** - Check the class [Feedback](https://www.dynamsoft.com/camera-enhancer/docs/web/programming/javascript/api-reference/feedback.html#beep) for more details.
20-
21-
22-
<details>
23-
<summary><b> Version 9</b></summary>
2413
This feature is controlled using the [whenToPlaySoundforSuccessfulRead](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/ScanSettings.html?ver=latest) property. To enable the feature, set the property to either **frame** or **unique**. To disable the feature, set it to **never**.
2514

2615
> This feature is disabled by default.
27-
</details>
-42.8 KB
Binary file not shown.

programming/javascript/faq/avoid-incorrect-barcode-results.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,5 @@ needAutoGenerateSidebar: false
1010

1111
[<< Back to FAQ index](index.md)
1212

13-
## Version 10
14-
- One method is to raise the value of [minResultConfidence](../api-reference/interfaces/simplified-barcode-reader-settings.md) of the `SimplifiedCaptureVisionSettings` interface of the capture vision router module. It is set to `30` by default.
15-
16-
- If the issue has to do with the length of the text result, you can try setting a minimum length for the barcode text(s) that are returned by the SDK. By setting the [minBarcodeTextLength](../api-reference/interfaces/simplified-barcode-reader-settings.md) property of the `SimplifiedCaptureVisionSettings` interface of the capture vision router module, the SDK can ignore results that are consistently coming out shorter than expected. It is set to `0` by default.
17-
18-
```javascript
19-
let settings = await router.getSimplifiedSettings('ReadSingleBarcode');
20-
settings.barcodeSettings.minResultConfidence = 40; //setting confidence
21-
settings.barcodeSettings.minBarcodeTextLength = 5; //setting barcodeTextLength
22-
await router.updateSettings('ReadSingleBarcode', settings);
23-
```
24-
25-
## Version 9
2613
- One method is to raise the value of [minResultConfidence](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/RuntimeSettings.html#minresultconfidence) of the `RuntimeSettings` to a value of 50 or higher. It is set to 30 by default.
2714
- If the issue has to do with the length of the text result, you can try setting a minimum length for the barcode text(s) that are returned by the SDK. By setting the [minBarcodeTextLength](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/RuntimeSettings.html#minbarcodetextlength) property of the `RuntimeSettings`, the SDK can ignore results that are consistently coming out shorter than expected.

programming/javascript/faq/call-loadWasm-proactively.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,4 @@ needAutoGenerateSidebar: false
1010

1111
[<< Back to FAQ index](index.md)
1212

13-
## Version 10
14-
Preload `BarcodeReader` or other specified module proactively to save time on the initial decoding by skipping the module loading at the time of instance creation.
15-
16-
```javascript
17-
await Dynamsoft.Core.CoreModule.loadWasm(["cvr", "dbr"]);
18-
if(Dynamsoft.Core.CoreModule.isModuleLoaded("cvr")){
19-
console.log("cvr module is loaded!").
20-
}
21-
```
22-
23-
## Version 9
2413
No, the method is internally called when `createInstance` is called so there is no need to explicitly call it. However, if you would like to save some time during the instance creation, you can choose to manually call the method as soon as the page is loaded rather than letting it load on the instance creation. This can help avoid unnecessary waiting time when the library is invoked.

programming/javascript/faq/change-domain-binding-of-product-key.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ needAutoGenerateSidebar: false
1111
[<< Back to FAQ index](index.md)
1212

1313
In order to change the domain binding of the handshake code that includes the license item in question please follow the below steps -
14-
1. You will first need to log into the [portal](https://www.dynamsoft.com/lts/index.html#/handshakeCodes).
15-
2. Once logged in, navigate to the "Projects" section in the left-hand tree menu.
14+
1. You will first need to log into the [customer portal](https://www.dynamsoft.com/customer/index).
15+
2. After login, please navigate go to [projects link](https://www.dynamsoft.com/lts/index.html#/handshakeCodes)
1616
3. Find the project that you want to change the domain binding.
1717
4. Click on the "Configure" button.
1818
5. Scroll down and find "Optional Settings" -> edit "Bind Website Domain" field to change your domain binding.

programming/javascript/faq/check-camera.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,9 @@ needAutoGenerateSidebar: false
1010

1111
[<< Back to FAQ index](index.md)
1212

13-
## version 10 or recent
14-
In version 10, use the `dynamsoft camera enhancer` to utilize the [testCameraAccess](https://www.dynamsoft.com/camera-enhancer/docs/web/programming/javascript/api-reference/camera-control.html#testCameraAccess) method to check the camera status programmatically.
13+
Starting from version 9.6.10+, you can utilize the [testCameraAccess](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/BarcodeScanner.html#testcameraaccess) method to check the camera status programmatically.
1514

16-
17-
## version 9.6.10 till version 10
18-
you can utilize the [testCameraAccess](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/BarcodeScanner.html#testcameraaccess) method to check the camera status programmatically.
19-
20-
## version older than 9.6.10
21-
you can check the status using a try-catch block as shown below:
15+
For versions older than 9.6.10, you can check the status using a try-catch block as shown below:
2216

2317
```javascript
2418
try {

programming/javascript/faq/check-current-version.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@ needAutoGenerateSidebar: false
1010

1111
[<< Back to FAQ index](index.md)
1212

13-
## For version 10
14-
- Check the version of Barcode Reader module
15-
```javascript
16-
Dynamsoft.DBR.BarcodeReaderModule.getVersion()
17-
```
18-
- If you are using the library via npm or yarn, then you can check the version of the package via
19-
```bash
20-
npm show dynamsoft-barcode-reader version
21-
```
22-
- If you are including the library via the CDN link, then the version number should be mentioned in that reference link.
23-
24-
25-
## For version 9
2613
There are multiple ways to check the version currently being used -
2714

2815
- The first way is to use the [version API](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/InitializationControl.html?ver=latest#version). Using this API in the browser console should print out the version of the library being used by the web app.

programming/javascript/faq/delay-when-open-camera.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,14 @@ needAutoGenerateSidebar: false
1010

1111
[<< Back to FAQ index](index.md)
1212

13-
## Version 10
14-
### 1. Invoke loadWasm
15-
Preload `BarcodeReader` or other specified module proactively to save time on the initial decoding by skipping the module loading at the time of instance creation.
1613

17-
```javascript
18-
await Dynamsoft.Core.CoreModule.loadWasm(["DBR"]);
19-
```
20-
### 2. skip camera inspection
21-
You can bypass the camera selection[ifSkipCameraInspection](https://www.dynamsoft.com/camera-enhancer/docs/web/programming/javascript/api-reference/camera-control.html#ifskipcamerainspection)
22-
```javascript
23-
cameraEnhancer.ifSkipCameraInspection
24-
```
25-
26-
### 3. Pre-open camera in advance
27-
Run the following code before calling `createInstance`.
28-
```
29-
navigator.mediaDevices.getUserMedia({video: true}).then(mediaStream=>{
30-
mediaStream.getTracks().forEach((track) => {
31-
track.stop();
32-
});
33-
}, err=>{});
34-
```
35-
36-
## Version 9
37-
### 1. Invoke loadWasm in advance
14+
## 1. Invoke loadWasm in advance
3815

3916
```javascript
4017
Dynamsoft.DBR.BarcodeReader.loadWasm();
4118
```
4219

43-
### 2. Pre-open the camera in advance
20+
## 2. Pre-open the camera in advance
4421

4522
Run the following code before calling `createInstance`.
4623
```
@@ -51,7 +28,7 @@ navigator.mediaDevices.getUserMedia({video: true}).then(mediaStream=>{
5128
}, err=>{});
5229
```
5330

54-
### 3. Skip Camera inspection(use default camera)
31+
## 3. Skip Camera inspection(use default camera)
5532

5633
```javascript
5734
scanner.ifSkipCameraInspection = true;

0 commit comments

Comments
 (0)