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
description: What are the differences between updateScanSettings/updateVideoSettings/updateRuntimeSettings?
6
+
needAutoGenerateSidebar: false
7
+
---
8
+
9
+
# How to use initSettings/getSimplifiedSettings/updateSettings?
10
+
11
+
[<< Back to FAQ index](index.md)
12
+
13
+
`initSettings` is used to initiate instance with specified setting. [initSettings](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/capture-vision-router/settings.html?product=dbr&lang=javascript#initsettings) configures runtime settings using a provided JSON string, an object, or a URL pointing to an object, which contains settings for one or more CaptureVisionTemplates.
14
+
15
+
`getSimplifiedSettings` is used to get the [SimplifiedCaptureVisionSettings](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/capture-vision-router/interfaces/simplified-capture-vision-settings.html?product=dbr&lang=javascript) that is interface provides a standardized way to adjust a select set of settings for a given CaptureVisionTemplate.
16
+
17
+
`updateSettings` is used to update the [SimplifiedCaptureVisionSettings](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/capture-vision-router/interfaces/simplified-capture-vision-settings.html?product=dbr&lang=javascript) interface. It updates the barcode settings tasks with a given object [SimplifiedBarcodeReaderSettings](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interfaces/simplified-barcode-reader-settings.html).
Copy file name to clipboardExpand all lines: programming/javascript/faq/differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.md
7.[When to use onFrameRead and when to use onUniqueRead?](use-of-onFrameRead-and-onUnduplicateRead.html)
24
+
7.[Do we have to call loadWasm proactively?](call-loadWasm-proactively.html)
25
25
26
-
8.[Do we have to call loadWasm proactively?](call-loadWasm-proactively.html)
26
+
8.[How to use initSettings/getSimplifiedSettings/updateSettings?](differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.html)
27
27
28
-
9.[What are the differences between updateScanSettings/updateVideoSettings/updateRuntimeSettings?](differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.html)
28
+
9.[What are the different ways to customize the UI?](different-ways-to-customize-ui.html)
29
29
30
-
10.[What are the different ways to customize the UI?](different-ways-to-customize-ui.html)
30
+
10.[How to get the logs for the JavaScript SDK?](get-sdk-logs.html)
31
31
32
-
11.[How to get the logs for the JavaScript SDK?](get-sdk-logs.html)
32
+
11.[How do you upgrade to a newer version of the SDK?](upgrade-old-to-new.html)
33
33
34
-
12.[How do you upgrade to a newer version of the SDK?](upgrade-old-to-new.html)
34
+
12.[How to change the domain binding of your product key?](change-domain-binding-of-product-key.html)
35
35
36
-
13.[How to change the domain binding of your product key?](change-domain-binding-of-product-key.html)
36
+
13.[When is singleFrameMode enabled?](when-singleFrameMode-is-enabled.html)
37
37
38
-
14.[When is singleFrameMode enabled?](when-singleFrameMode-is-enabled.html)
38
+
14.[How to get intermediate result images?](get-intermediate-result-images.html)
39
39
40
-
15.[How to get intermediate result images?](get-intermediate-result-images.html)
40
+
15.[How to read an inverted image?](read-inverted-image.html)
41
41
42
-
16.[How to read an inverted image?](read-inverted-image.html)
42
+
16.[How to read barcodes from existing files?](read-from-existing-files.html)
43
43
44
-
17.[How to read barcodes from existing files?](read-from-existing-files.html)
44
+
17.[What file/image formats are supported when reading barcodes from files in local memory?](formats-supported-for-existing-files.html)
45
45
46
-
18.[What file/image formats are supported when reading barcodes from files in local memory?](formats-supported-for-existing-files.html)
46
+
18.[How to scan the barcode on a US Driver’s License and get the first name, last name, DOB, etc.?](scan-US-drivers-license.html)
47
47
48
-
19.[How to scan the barcode on a US Driver’s License and get the first name, last name, DOB, etc.?](scan-US-drivers-license.html)
48
+
19.[How to add/remove a "beep" sound once a barcode is found?](add-remove-beep-sound.html)
49
49
50
-
20.[How to add/remove a "beep" sound once a barcode is found?](add-remove-beep-sound.html)
50
+
20.[How do I create a NodeJS application using the SDK?](nodejs-implementation.html)
51
51
52
-
21.[How do I create a NodeJS application using the SDK?](nodejs-implementation.html)
52
+
21.[How to check the version of the JavaScript SDK I am currently using?](check-current-version.html)
53
53
54
-
22.[How to check the version of the JavaScript SDK I am currently using?](check-current-version.html)
54
+
22.[How to stop the camera stream from opening right away after DBR-JS demo is loaded? How can you enable the camera on the click of a button?](stop-camera-to-open-right-away.html)
55
55
56
-
23.[How to stop the camera stream from opening right away after DBR-JS demo is loaded? How can you enable the camera on the click of a button?](stop-camera-to-open-right-away.html)
56
+
23.[What is the difference between the BarcodeReader class and the BarcodeScanner class? Can they be used interchangeably?](difference-between-barcodeReader-and-barcodeScanner.html)
57
57
58
-
24.[What is the difference between the BarcodeReader class and the BarcodeScanner class? Can they be used interchangeably?](difference-between-barcodeReader-and-barcodeScanner.html)
58
+
24.[Why are newline characters not being rendered when displaying the barcode results in a textbox?](newline-character-not-being-rendered.html)
59
59
60
-
25.[Why are newline characters not being rendered when displaying the barcode results in a textbox?](newline-character-not-being-rendered.html)
60
+
25.[How to resolve the expected magic word error that occurs when using the JavaScript SDK?](resolve-magic-word.html)
61
61
62
-
26.[How to resolve the expected magic word error that occurs when using the JavaScript SDK?](resolve-magic-word.html)
62
+
26.[What are the general troubleshooting steps if an image fails to decode with the JavaScript SDK?](general-troubleshooting-steps-for-decode-failure.html)
63
63
64
-
27.[What are the general troubleshooting steps if an image fails to decode with the JavaScript SDK?](general-troubleshooting-steps-for-decode-failure.html)
64
+
27.[What are the differences between the 'speed', 'coverage', 'balance', and 'single' runtime templates?](difference-between-bestspeed-and-bestcoverage.html)
65
65
66
-
28.[What are the differences between the 'speed', 'coverage', 'balance', and 'single' runtime templates?](difference-between-bestspeed-and-bestcoverage.html)
66
+
28.[How to avoid incorrect barcode results?](avoid-incorrect-barcode-results.html)
67
67
68
-
29.[How to avoid incorrect barcode results?](avoid-incorrect-barcode-results.html)
68
+
29.[How does license tracking work with the three standard licensing options - Per Scan, Per Device, Per Concurrent Device?](how-license-tracking-works.html)
69
69
70
-
30.[How does license tracking work with the three standard licensing options - Per Scan, Per Device, Per Concurrent Device?](how-license-tracking-works.html)
70
+
30.[When is a new license spot taken when using a per-device licensing model?](new-license-required-per-device-licensing.html)
71
71
72
-
31.[When is a new license spot taken when using a per-device licensing model?](new-license-required-per-device-licensing.html)
72
+
31.[How to get rid of the delay when opening the camera?](delay-when-open-camera.html)
73
73
74
-
32.[How to get rid of the delay when opening the camera?](delay-when-open-camera.html)
74
+
32.[How can I hide the laser bar and Dynamsoft message in the default UI of the BarcodeScanner?](hide-laser-message-ui.html)
75
75
76
-
33.[How can I hide the laser bar and Dynamsoft message in the default UI of the BarcodeScanner?](hide-laser-message-ui.html)
76
+
33.[Why is the Javascript SDK not recognizing any barcodes on iOS 16.4?](ios-16-incompatible.html)
77
77
78
-
34.[Why is the Javascript SDK not recognizing any barcodes on iOS 16.4?](ios-16-incompatible.html)
78
+
34.[How to check the camera permissions programmatically in Dynamsoft Barcode Reader JavaScript SDK?](check-camera.html)
79
79
80
-
35.[How to check the camera permissions programmatically in Dynamsoft Barcode Reader JavaScript SDK?](check-camera.html)
80
+
35.[How do I resolve the issue of the Barcode Reader not recognizing any barcodes via video in iOS 16.7 or 17?](ios-17-readability.html)
81
81
82
-
36.[How do I resolve the issue of the Barcode Reader not recognizing any barcodes via video in iOS 16.7 or 17?](ios-17-readability.html)
82
+
36.[How to Reduce Duplicate Scans and Optimize Scan Usage?](remove-duplicates.html)
Copy file name to clipboardExpand all lines: programming/javascript/faq/newline-character-not-being-rendered.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,4 +10,4 @@ needAutoGenerateSidebar: false
10
10
11
11
[<< Back to FAQ index](index.md)
12
12
13
-
That is because in normal HTML, newline characters are not interpreted as they normally would, so newline characters in the barcode result will be ignored. To account for them, it's best to either wrap the element used to display the result in a `<pre>` element, or manually replace each newline character with `<br />`. Please refer to [this article](https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#accounting-for-newline-characters-in-the-barcode-result) for more details.
13
+
That is because in normal HTML, newline characters are not interpreted as they normally would, so newline characters in the barcode result will be ignored. To account for them, it's best to either wrap the element used to display the result in a `<pre>` element, or manually replace each newline character with `<br />`. Please refer to [this article](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/user-guide/advanced-usage.html#account-for-newline-characters-in-the-barcode-result) for more details.
Yes, the JavaScript SDK supports reading from a file in local memory. This can be achieved via the `BarcodeReader` class instead of the `BarcodeScanner` class.
13
+
Yes, the JavaScript SDK supports reading from a file in local memory. This can be achieved via the `Caputure` class.
14
14
15
15
```javascript
16
-
let reader =awaitDynamsoft.DBR.BarcodeReader.createInstance();
17
-
let results =awaitreader.decode(imageSource);
16
+
let router =awaitDynamsoft.CVR.CaptureVisionRouter.createInstance();
17
+
let results =awaitrouter.capture("blob:https://demo.dynamsoft.com/afb84bd2-e8cb-4b96-92b6-36dc89783692", "ReadSingleBarcode");
18
+
let count =results.items.length;
19
+
for(let i =0; i < count; i++) {
20
+
//...
21
+
}
22
+
18
23
```
19
24
20
-
> [this article](https://www.dynamsoft.com/barcode-reader/programming/javascript/samples-demos/helloworld-readfile.html) shows how to read barcodes from existing images and a list of supported input types.
25
+
> [this article](https://www.dynamsoft.com/capture-vision/docs/web/programming/javascript/api-reference/capture-vision-router/single-image-processing.html?product=dbr&lang=javascript) shows how to read barcodes from existing images and a list of supported input types.
Copy file name to clipboardExpand all lines: programming/javascript/faq/when-singleFrameMode-is-enabled.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,13 @@ needAutoGenerateSidebar: false
10
10
11
11
[<< Back to FAQ index](index.md)
12
12
13
+
## Verson 10
14
+
15
+
SingleFrameMode can be enabled by calling the api from the camera enhancer module. check
16
+
[singleFrameMode](https://www.dynamsoft.com/camera-enhancer/docs/web/programming/javascript/api-reference/acquisition.html#singleframemode) for detailed information.
17
+
18
+
## Version 9
19
+
13
20
`singleFrameMode` is enable in the below two scenarios -
14
21
15
22
1. When using the library from a non-secure origin (no HTTPS).
0 commit comments