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: programming/javascript/faq/adaptive-wasm-loading.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ Once correctly configured, the SDK will automatically detect the environment and
46
46
47
47
## How to manually specify which Wasm variant to load?
48
48
49
-
By default, the SDK automatically determines the most suitable WebAssembly (Wasm) variant to load based on the browser’s capabilities.
49
+
By default, the SDK automatically determines the most suitable WebAssembly (Wasm) variant to load based on the browser's capabilities.
50
50
However, developers can **manually override** this behavior and explicitly specify which Wasm module to load through the `wasmLoadOptions` property.
51
51
52
52
### Example
@@ -75,7 +75,7 @@ type WasmType =
75
75
>
76
76
>If the specified Wasm variant is not supported in the current browser, the SDK will gracefully fall back to a compatible variant.
77
77
78
-
## Why isn’t -SIMD-Pthread Wasm enabled by default on iOS?
78
+
## Why isn't -SIMD-Pthread Wasm enabled by default on iOS?
79
79
80
-
Due to iOS’s strict memory allocation and management limitations, loading `-SIMD-Pthread Wasm` can sometimes lead to “out of memory” errors on older devices or iOS versions.
80
+
Due to iOS's strict memory allocation and management limitations, loading `-SIMD-Pthread Wasm` can sometimes lead to “out of memory” errors on older devices or iOS versions.
81
81
To ensure stability and compatibility, the SDK does not load `-SIMD-Pthread Wasm` by default on iOS. Instead, it automatically falls back to the most suitable Baseline or SIMD variant depending on the environment.
> **_NOTE:_** If the barcode is decoded, then you can output the settings and use that setting template via the `updateRuntimeSettings` method. If the barcode still can’t be decoded via the online demo, then move on to step 2.
31
+
> **_NOTE:_** If the barcode is decoded, then you can output the settings and use that setting template via the `updateRuntimeSettings` method. If the barcode still can't be decoded via the online demo, then move on to step 2.
32
32
33
33
## Step 2 - capture image frames and send to Dynamsoft for analysis
- Updated the barcode reader algorithm to v9.6.30.
68
68
- Updated the internal `Dynamsoft Camera Enhancer` from version 3.3.5 to version 3.3.6.
69
-
- Updated the API [`singleFrameMode`](../api-reference/BarcodeScanner.md#singleframemode) to support using the system camera directly without prompting for image source selection on mobile devices.
69
+
- Updated the API `singleFrameMode` to support using the system camera directly without prompting for image source selection on mobile devices.
70
70
- Updated the method `close()` so that it automatically clears the highlighting of found barcode symbols.
- Updated the barcode reader algorithm to v9.6.10.
115
115
- Updated the internal `Dynamsoft Camera Enhancer` to [v3.3.1](https://www.dynamsoft.com/camera-enhancer/docs-archive/web/programming/javascript/release-note/release-notes-3.x.html#331-02202023).
116
-
- The method [`decodeBuffer`](../api-reference/BarcodeReader.md#decodebuffer) is updated to accept an additional parameter "orientation" to help specify the orientation of the image data.
117
-
- The interface [`LocalizationResult`](../api-reference/interface/LocalizationResult.md) is updated to have a new property "transformationMatrix".
118
-
- Three missing errorcodes are added: DBR_PANORAMA_LICENSE_INVALID, DBR_PHARMACODE_LICENSE_INVALID, DBR_IMAGE_ORIENTATION_INVALID. Check the full list at [`EnumErrorCode`](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/enum/EnumErrorCode.html).
116
+
- The method `decodeBuffer` is updated to accept an additional parameter "orientation" to help specify the orientation of the image data.
117
+
- The interface `LocalizationResult` is updated to have a new property "transformationMatrix".
118
+
- Three missing errorcodes are added: DBR_PANORAMA_LICENSE_INVALID, DBR_PHARMACODE_LICENSE_INVALID, DBR_IMAGE_ORIENTATION_INVALID. Check the full list at [`EnumErrorCode`](https://www.dynamsoft.com/barcode-reader/docs/v9/web/programming/javascript/api-reference/enum/EnumErrorCode.html).
- Added 3 new properties in [`ScanSettings`](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/ScanSettings.html#scansettings)
156
+
- Added 3 new properties in `ScanSettings`
157
157
1.`autoZoom`, when set to `true`, means the SDK will automatically zoom in on the video if the barcode appears too small in the video feed and fails to be read;
158
158
2.`autoFocus`, when set to `true`, means the SDK will automatically focus on the part of the video where a barcode is found but fails to be read;
159
159
3.`autoSuggestTip`, when set to `true`, means the SDK will automatically suggest Tip messages to help guide the user to acquire better video frames for barcode reading.
* Added method `setVideoFit()` to `BarcodeScanner` to allow the video element to either fit or cover the viewer.
246
-
* Added method `setImageSource()` to `BarcodeReader` to specify an Image Source which provides images of the type [`DSImage`](../api-reference/interface/dsimage.md) for continuous scanning.
246
+
* Added method `setImageSource()` to `BarcodeReader` to specify an Image Source which provides images of the type `DSImage` for continuous scanning.
247
247
* Added methods `startScanning()`, `pauseScanning()`, `resumeScanning()`, `stopScanning()`, `getScanSettings()` and `updateScanSettings()` as well as events `onUniqueRead` and `onImageRead` to `BarcodeReader` to facilitate continous scanning of images coming from the Image Source.
248
248
249
249
## 9.0.0 (03/24/2022)
@@ -290,10 +290,10 @@ The following APIs are moved:
290
290
291
291
| API Name | Notes |
292
292
|:-|:-|
293
-
|`whenToPlaySoundforSuccessfulRead`| Moved to [`ScanSettings`](../api-reference/interface/ScanSettings.md).|
294
-
|`soundOnSuccessfullRead`| Moved to [`ScanSettings`](../api-reference/interface/ScanSettings.md).|
295
-
|`whenToVibrateforSuccessfulRead`| Moved to [`ScanSettings`](../api-reference/interface/ScanSettings.md).|
296
-
|`vibrateDuration`| Moved to [`ScanSettings`](../api-reference/interface/ScanSettings.md).|
293
+
|`whenToPlaySoundforSuccessfulRead`| Moved to `ScanSettings`|
294
+
|`soundOnSuccessfullRead`| Moved to `ScanSettings`|
295
+
|`whenToVibrateforSuccessfulRead`| Moved to `ScanSettings`|
The template system is upgraded. The template you used for the previous version can’t be directly recognized by the new version. Please use the [template upgrade tool](https://www.dynamsoft.com/tools/template-upgrade/) to upgrade your template.
62
+
The template system is upgraded. The template you used for the previous version can't be directly recognized by the new version. Please use the [template upgrade tool](https://www.dynamsoft.com/tools/template-upgrade/) to upgrade your template.
63
63
64
64
## From version 9.x or earlier
65
65
@@ -70,6 +70,6 @@ The Dynamsoft Barcode Reader JavaScript edition has been refactored to integrate
70
70
71
71
> [!IMPORTANT]
72
72
>
73
-
> Dynamsoft’s ongoing feature development is based on the new DCV architecture. By upgrading to v11, you’ll gain access to improved performance and new capabilities.
73
+
> Dynamsoft's ongoing feature development is based on the new DCV architecture. By upgrading to v11, you'll gain access to improved performance and new capabilities.
74
74
75
75
Due to the architectural changes, **a significant rewrite of your existing code is required**. we recommend you to follow the [User Guide](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/barcode-scanner.html) and re-write your codes.
Copy file name to clipboardExpand all lines: programming/javascript/user-guide/barcode-scanner-customization.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ Refer to [`Use customized template`](#use-customized-template) for more details.
53
53
54
54
## Use customized template
55
55
56
-
In more complex scenarios—such as blurred, damaged, curved, or unevenly lit barcodes—you might need a custom template to perform specific image processing steps. BarcodeScannerConfig provides a property to load a template file, allowing you to customize the algorithm’s processing workflow.
56
+
In more complex scenarios—such as blurred, damaged, curved, or unevenly lit barcodes—you might need a custom template to perform specific image processing steps. BarcodeScannerConfig provides a property to load a template file, allowing you to customize the algorithm's processing workflow.
57
57
58
58
> [!WARNING]
59
59
> This operation will overwrite the built-in templates.
Here’s how to quickly set up a video barcode scanner using the `BarcodeScanner` class:
144
+
Here's how to quickly set up a video barcode scanner using the `BarcodeScanner` class:
145
145
146
146
```ts
147
147
const config = {
@@ -155,7 +155,7 @@ Here’s how to quickly set up a video barcode scanner using the `BarcodeScanner
155
155
156
156
#### Define the resource paths
157
157
158
-
To ensure stability, especially in environments with limited internet access, it’s a good idea to **host all required resources locally** (e.g., under the dist/ folder).
158
+
To ensure stability, especially in environments with limited internet access, it's a good idea to **host all required resources locally** (e.g., under the dist/ folder).
159
159
Below is an example using the official CDN — feel free to replace it with your own path:
Welcome! This package contains all resource files related to **Dynamsoft Barcode Reader JavaScript SDK**, and sample projects demonstrating how to use it.
4
4
@@ -38,18 +38,18 @@ Here are a couple of easy ways to start one:
38
38
http://localhost:8000
39
39
```
40
40
41
-
You’ll see the `index.html` page, which links to all sample pages.
41
+
You'll see the `index.html` page, which links to all sample pages.
42
42
43
43
>[!TIP]
44
-
> Don’t want to set up a local server? You can view the latest version of our samples hosted on the Dynamsoft server here:
44
+
> Don't want to set up a local server? You can view the latest version of our samples hosted on the Dynamsoft server here:
- `frameworks/`– This directory contains framework-specific examples demonstrating how to integrate the Dynamsoft Barcode Reader (JavaScript edition) into common web and hybrid frameworks. Each framework folder contains one or more runnable sub-examples (for example, scan-using-foundational-api and/or scan-using-rtu-api) showing practical integration patterns.
52
-
- `scenarios/`– This directory contains focused scenario samples that show common real-world uses of the Dynamsoft Barcode Reader (JavaScript edition).
51
+
- `frameworks/`- This directory contains framework-specific examples demonstrating how to integrate the Dynamsoft Barcode Reader (JavaScript edition) into common web and hybrid frameworks. Each framework folder contains one or more runnable sub-examples (for example, scan-using-foundational-api and/or scan-using-rtu-api) showing practical integration patterns.
52
+
- `scenarios/`- This directory contains focused scenario samples that show common real-world uses of the Dynamsoft Barcode Reader (JavaScript edition).
0 commit comments