Skip to content

Commit bf1df6a

Browse files
update to internal commit 78e8c784
1 parent 1e63e7f commit bf1df6a

8 files changed

+65
-118
lines changed

_includes/sidelist-programming/programming-javascript.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,16 +1417,21 @@
14171417
>Is HTTPS absolutely required?</a
14181418
>
14191419
</li>
1420-
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>
14211425
<li>
14221426
<a href="{{ site.js }}faq/call-loadWasm-proactively.html"
14231427
>Do we have to call loadWasm proactively?</a
14241428
>
14251429
</li>
14261430
<li>
14271431
<a
1428-
href="{{ site.js }}faq/barcode-reader-docs-js/programming/javascript/faq/How-to-use-initSettings-getSimplifiedSettings-updateSettings.html"
1429-
>How to use initSettings/getSimplifiedSettings/updateSettings?</a
1432+
href="{{ site.js }}faq/differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.html"
1433+
>Differences between
1434+
updateScanSettings/updateVideoSettings/updateRuntimeSettings?</a
14301435
>
14311436
</li>
14321437
<li>
@@ -1474,6 +1479,11 @@
14741479
>Formats supported when reading barcodes from files in local memory?</a
14751480
>
14761481
</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>
14771487
<li>
14781488
<a href="{{ site.js }}faq/scan-US-drivers-license.html"
14791489
>How to scan the barcode on a US Driver"s License and get the first

_layouts/search-page.html

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -178,57 +178,6 @@ <h1>Search</h1>
178178
$('.productMenu').css({'top': 'unset'});
179179
}
180180
}
181-
182-
$("body").delegate("#searchResult .gsc-resultsRoot a.gs-title", "click", function(e) {
183-
e.preventDefault();
184-
185-
var link = $(this).eq(0).data("ctorig")
186-
if (link.indexOf("capture-vision/docs") > 0) {
187-
var repoType = getRepoType("web", link);
188-
if (link.indexOf("?") > 0) {
189-
var arr = link.split("?")
190-
if(arr[1].indexOf("#") > 0) {
191-
var subArr = arr[1].split("#")
192-
link = link +"?product=dbr&repoType="+ repoType +"&" + arr[1]
193-
} else {
194-
link = link + "&product=dbr&repoType=" + repoType
195-
}
196-
} else {
197-
link = link + "?product=dbr&repoType=" + repoType
198-
}
199-
}
200-
window.location.href = link
201-
});
202-
203-
function getRepoType(defaultValue, link) {
204-
var lang = getCurrentUrlLang(link, true)
205-
var repoType = defaultValue
206-
if (lang) {
207-
if (lang == 'android' || lang == 'objectivec-swift') {
208-
repoType = "mobile"
209-
} else if (lang == 'javascript') {
210-
repoType = "web"
211-
} else if (lang == 'cplusplus' || lang == 'c' || lang == 'java' || lang == 'dotnet') {
212-
repoType = "server"
213-
} else {
214-
repoType = "core"
215-
}
216-
} else {
217-
if(link.indexOf("/docs/server/") > 0) {
218-
repoType = "server"
219-
}
220-
if (link.indexOf("/docs/core/") > 0) {
221-
repoType = "core"
222-
}
223-
if (link.indexOf("/docs/mobile") > 0) {
224-
repoType = "mobile"
225-
}
226-
if (link.indexOf("/docs/web/") > 0) {
227-
repoType = "web"
228-
}
229-
}
230-
return repoType
231-
}
232181
</script>
233182

234183
{%- include livehelp.html -%}

programming/javascript/faq/How-to-use-initSettings-getSimplifiedSettings-updateSettings.md

Lines changed: 0 additions & 17 deletions
This file was deleted.
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: What are the differences between updateScanSettings/updateVideoSettings/updateRuntimeSettings?
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+
# What are the differences between updateScanSettings/updateVideoSettings/updateRuntimeSettings ?
10+
11+
[<< Back to FAQ index](index.md)
12+
13+
`updateScanSettings` is used to update the [ScanSettings](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/interface/ScanSettings.html?ver=latest) interface. This can be used to configure settings such as ignoring duplicate reads, setting sound/vibration when a barcode is scanned.
14+
15+
`updateVideoSettings` is used to update the [MediaStreamConstraints](https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API/Constraints) that define most of the video information such as width, height, and the camera facingMode (i.e. front or rear camera).
16+
17+
`updateRuntimeSettings` is used to update the [RuntimeSettings](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/interface/RuntimeSettings.html?ver=latest) interface. It updates the runtime settings with a given object or use the string `speed`, `balance`, or `coverage` to use [our preset settings for BarcodeScanner](https://www.dynamsoft.com/barcode-reader/parameters/structure-and-interfaces-of-parameters.html?ver=latest#using-runtime-settings-templates). The default setting is `speed`.

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. [Do we have to call loadWasm proactively?](call-loadWasm-proactively.html)
24+
7. [When to use onFrameRead and when to use onUniqueRead?](use-of-onFrameRead-and-onUnduplicateRead.html)
2525

26-
8. [How to use initSettings/getSimplifiedSettings/updateSettings?](differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.html)
26+
8. [Do we have to call loadWasm proactively?](call-loadWasm-proactively.html)
2727

28-
9. [What are the different ways to customize the UI?](different-ways-to-customize-ui.html)
28+
9. [What are the differences between updateScanSettings/updateVideoSettings/updateRuntimeSettings?](differences-between-updateScanSettings-updateVideoSettings-and-updateRuntimeSettings.html)
2929

30-
10. [How to get the logs for the JavaScript SDK?](get-sdk-logs.html)
30+
10. [What are the different ways to customize the UI?](different-ways-to-customize-ui.html)
3131

32-
11. [How do you upgrade to a newer version of the SDK?](upgrade-old-to-new.html)
32+
11. [How to get the logs for the JavaScript SDK?](get-sdk-logs.html)
3333

34-
12. [How to change the domain binding of your product key?](change-domain-binding-of-product-key.html)
34+
12. [How do you upgrade to a newer version of the SDK?](upgrade-old-to-new.html)
3535

36-
13. [When is singleFrameMode enabled?](when-singleFrameMode-is-enabled.html)
36+
13. [How to change the domain binding of your product key?](change-domain-binding-of-product-key.html)
3737

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

40-
15. [How to read an inverted image?](read-inverted-image.html)
40+
15. [How to get intermediate result images?](get-intermediate-result-images.html)
4141

42-
16. [How to read barcodes from existing files?](read-from-existing-files.html)
42+
16. [How to read an inverted image?](read-inverted-image.html)
4343

44-
17. [What file/image formats are supported when reading barcodes from files in local memory?](formats-supported-for-existing-files.html)
44+
17. [How to read barcodes from existing files?](read-from-existing-files.html)
4545

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)
46+
18. [What file/image formats are supported when reading barcodes from files in local memory?](formats-supported-for-existing-files.html)
4747

48-
19. [How to add/remove a "beep" sound once a barcode is found?](add-remove-beep-sound.html)
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)
4949

50-
20. [How do I create a NodeJS application using the SDK?](nodejs-implementation.html)
50+
20. [How to add/remove a "beep" sound once a barcode is found?](add-remove-beep-sound.html)
5151

52-
21. [How to check the version of the JavaScript SDK I am currently using?](check-current-version.html)
52+
21. [How do I create a NodeJS application using the SDK?](nodejs-implementation.html)
5353

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)
54+
22. [How to check the version of the JavaScript SDK I am currently using?](check-current-version.html)
5555

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

58-
24. [Why are newline characters not being rendered when displaying the barcode results in a textbox?](newline-character-not-being-rendered.html)
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)
5959

60-
25. [How to resolve the expected magic word error that occurs when using the JavaScript SDK?](resolve-magic-word.html)
60+
25. [Why are newline characters not being rendered when displaying the barcode results in a textbox?](newline-character-not-being-rendered.html)
6161

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)
62+
26. [How to resolve the expected magic word error that occurs when using the JavaScript SDK?](resolve-magic-word.html)
6363

64-
27. [What are the differences between the 'speed', 'coverage', 'balance', and 'single' runtime templates?](difference-between-bestspeed-and-bestcoverage.html)
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)
6565

66-
28. [How to avoid incorrect barcode results?](avoid-incorrect-barcode-results.html)
66+
28. [What are the differences between the 'speed', 'coverage', 'balance', and 'single' runtime templates?](difference-between-bestspeed-and-bestcoverage.html)
6767

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)
68+
29. [How to avoid incorrect barcode results?](avoid-incorrect-barcode-results.html)
6969

70-
30. [When is a new license spot taken when using a per-device licensing model?](new-license-required-per-device-licensing.html)
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)
7171

72-
31. [How to get rid of the delay when opening the camera?](delay-when-open-camera.html)
72+
31. [When is a new license spot taken when using a per-device licensing model?](new-license-required-per-device-licensing.html)
7373

74-
32. [How can I hide the laser bar and Dynamsoft message in the default UI of the BarcodeScanner?](hide-laser-message-ui.html)
74+
32. [How to get rid of the delay when opening the camera?](delay-when-open-camera.html)
7575

76-
33. [Why is the Javascript SDK not recognizing any barcodes on iOS 16.4?](ios-16-incompatible.html)
76+
33. [How can I hide the laser bar and Dynamsoft message in the default UI of the BarcodeScanner?](hide-laser-message-ui.html)
7777

78-
34. [How to check the camera permissions programmatically in Dynamsoft Barcode Reader JavaScript SDK?](check-camera.html)
78+
34. [Why is the Javascript SDK not recognizing any barcodes on iOS 16.4?](ios-16-incompatible.html)
7979

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)
80+
35. [How to check the camera permissions programmatically in Dynamsoft Barcode Reader JavaScript SDK?](check-camera.html)
8181

82-
36. [How to Reduce Duplicate Scans and Optimize Scan Usage?](remove-duplicates.html)
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)

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/docs/web/programming/javascript/user-guide/advanced-usage.html#account-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/programming/javascript/user-guide/?ver=latest#accounting-for-newline-characters-in-the-barcode-result) for more details.

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,11 @@ 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 `Caputure` class.
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.
1414

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

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

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ 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-
2013
`singleFrameMode` is enable in the below two scenarios -
2114

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

0 commit comments

Comments
 (0)