Skip to content

Commit 8eded95

Browse files
update to internal commit da85a978
1 parent bf1df6a commit 8eded95

7 files changed

+66
-65
lines changed

_includes/sidelist-programming/programming-javascript.html

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,21 +1417,15 @@
14171417
>Is HTTPS absolutely required?</a
14181418
>
14191419
</li>
1420-
<li>
1421-
<a href="{{ site.js }}faq/use-of-onFrameRead-and-onUnduplicateRead.html"
1422-
>When to use onFrameRead and when to use onUniqueRead?</a
1423-
>
1424-
</li>
14251420
<li>
14261421
<a href="{{ site.js }}faq/call-loadWasm-proactively.html"
14271422
>Do we have to call loadWasm proactively?</a
14281423
>
14291424
</li>
14301425
<li>
14311426
<a
1432-
href="{{ site.js }}faq/differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.html"
1433-
>Differences between
1434-
updateScanSettings/updateVideoSettings/updateRuntimeSettings?</a
1427+
href="{{ site.js }}faq/barcode-reader-docs-js/programming/javascript/faq/How-to-use-initSettings-getSimplifiedSettings-updateSettings.html"
1428+
>How to use initSettings/getSimplifiedSettings/updateSettings?</a
14351429
>
14361430
</li>
14371431
<li>
@@ -1479,11 +1473,6 @@
14791473
>Formats supported when reading barcodes from files in local memory?</a
14801474
>
14811475
</li>
1482-
<li>
1483-
<a href="{{ site.js }}faq/read-text-from-barcode-image.html"
1484-
>How to read the text info usually located around a barcode image?</a
1485-
>
1486-
</li>
14871476
<li>
14881477
<a href="{{ site.js }}faq/scan-US-drivers-license.html"
14891478
>How to scan the barcode on a US Driver"s License and get the first
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default-layout
3+
title: How to use initSettings/getSimplifiedSettings/updateSettings?
4+
keywords: Dynamsoft Barcode Reader, FAQ, tech basic, updateScanSettings, updateVideoSettings, updateRuntimeSettings
5+
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).

programming/javascript/faq/differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

programming/javascript/faq/index.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,62 +21,62 @@ noTitleIndex: true
2121

2222
6. [Is HTTPS absolutely required?](is-https-required.html)
2323

24-
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)
2525

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)
2727

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)
2929

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)
3131

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)
3333

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)
3535

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)
3737

38-
14. [When is singleFrameMode enabled?](when-singleFrameMode-is-enabled.html)
38+
14. [How to get intermediate result images?](get-intermediate-result-images.html)
3939

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)
4141

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)
4343

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)
4545

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)
4747

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)
4949

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)
5151

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)
5353

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)
5555

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)
5757

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)
5959

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)
6161

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)
6363

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)
6565

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)
6767

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)
6969

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)
7171

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)
7373

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)
7575

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)
7777

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)
7979

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)
8181

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)

programming/javascript/faq/newline-character-not-being-rendered.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ needAutoGenerateSidebar: false
1010

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

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.

programming/javascript/faq/read-from-existing-files.md

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

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

13-
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.
1414

1515
```javascript
16-
let reader = await Dynamsoft.DBR.BarcodeReader.createInstance();
17-
let results = await reader.decode(imageSource);
16+
let router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
17+
let results = await router.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+
1823
```
1924

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.

programming/javascript/faq/when-singleFrameMode-is-enabled.md

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

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

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+
1320
`singleFrameMode` is enable in the below two scenarios -
1421

1522
1. When using the library from a non-secure origin (no HTTPS).

0 commit comments

Comments
 (0)