Skip to content

Commit 37006cb

Browse files
Merge pull request #362 from dynamsoft-docs/preview
Preview
2 parents f081ccb + 65a726a commit 37006cb

30 files changed

+658
-36
lines changed

_data/full_tree.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ tree_file_list:
22
- sidelist-full-tree.html
33
- sidelist-programming/programming-javascript.html
44
- sidelist-programming/programming-javascript-v10.0.21.html
5-
- sidelist-programming/programming-javascript-v9.6.40.html
5+
- sidelist-programming/programming-javascript-v9.6.42.html
66
- sidelist-programming/programming-javascript-v9.6.11.html
77
- sidelist-programming/programming-javascript-v9.0.2.html
88
- sidelist-programming/programming-javascript-v8.8.7.html

_data/product_version.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ version_info_list_js:
88
- 10.0.20
99
- value: 9.x
1010
child:
11+
- 9.6.42
1112
- 9.6.40
1213
- 9.6.33
1314
- 9.6.32

_includes/sidelist-programming/programming-javascript-v9.6.40.html renamed to _includes/sidelist-programming/programming-javascript-v9.6.42.html

File renamed without changes.

assets/js/dbrWebVersionSearch.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@
203203
}
204204
}
205205
},
206+
{
207+
"version": "9.6.42",
208+
"matchList": {
209+
"javascript": {
210+
"dce": "3.3.10"
211+
}
212+
}
213+
},
206214
{
207215
"version": "9.6.40",
208216
"matchList": {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ Besides, the CSS property 'position' of the DIV element must be either 'relative
557557
<script>
558558
(async () => {
559559
let scanner = await Dynamsoft.DBR.BarcodeScanner.createInstance();
560-
await scanner.setUIElement("https://cdn.jsdelivr.net/npm/[email protected].40/dist/dbr.ui.html");
560+
await scanner.setUIElement("https://cdn.jsdelivr.net/npm/[email protected].42/dist/dbr.ui.html");
561561
await scanner.show();
562562
})();
563563
</script>
@@ -578,7 +578,7 @@ static defaultUIElementURL: string
578578
**Code Snippet**
579579

580580
```js
581-
Dynamsoft.DBR.BarcodeScanner.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/[email protected].40/dist/dbr.ui.html";
581+
Dynamsoft.DBR.BarcodeScanner.defaultUIElementURL = "https://cdn.jsdelivr.net/npm/[email protected].42/dist/dbr.ui.html";
582582
let scanner = await Dynamsoft.DBR.BarcodeScanner.createInstance();
583583
await scanner.show();
584584
```

programming-old/javascript/api-reference/InitializationControl.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The following static methods and properties help to set up the runtime environme
1717
- [Initialization Control](#initialization-control)
1818
- [engineResourcePath](#engineresourcepath)
1919
- [loadWasm](#loadwasm)
20+
- [Return Value](#return-value)
2021
- [isWasmLoaded](#iswasmloaded)
2122
- [version](#version)
2223
- [detectEnvironment](#detectenvironment)
@@ -33,7 +34,7 @@ static engineResourcePath: string
3334
**Code Snippet**
3435

3536
```js
36-
Dynamsoft.DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].40/dist/";
37+
Dynamsoft.DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].42/dist/";
3738
await Dynamsoft.DBR.BarcodeReader.loadWasm();
3839
```
3940

programming-old/javascript/api-reference/LicenseControl.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ permalink: /programming/javascript/api-reference/LicenseControl.html
1212

1313
# License Control
1414

15-
* [license](#license)
16-
* [deviceFriendlyName](#devicefriendlyname)
15+
- [License Control](#license-control)
16+
- [license](#license)
17+
- [deviceFriendlyName](#devicefriendlyname)
1718

1819
## license
1920

@@ -32,7 +33,7 @@ static license: string
3233
**Code Snippet**
3334

3435
```html
35-
<script src="https://cdn.jsdelivr.net/npm/[email protected].40/dist/dbr.js" data-license="YOUR-LICENSE-KEY"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/[email protected].42/dist/dbr.js" data-license="YOUR-LICENSE-KEY"></script>
3637
```
3738
or
3839
```js

programming-old/javascript/api-reference/index-v9.6.40.md renamed to programming-old/javascript/api-reference/index-v9.6.42.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ needAutoGenerateSidebar: true
77
needGenerateH3Content: true
88
noTitleIndex: true
99
breadcrumbText: API Reference
10-
permalink: /programming/javascript/api-reference/index-v9.6.40.html
10+
permalink: /programming/javascript/api-reference/index-v9.6.42.html
1111
---
1212

1313
# JavaScript API Reference
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
layout: default-layout
3+
title: Introduction - Dynamsoft Barcode Reader JavaScript Edition
4+
description: This is the main page of Dynamsoft Barcode Reader JavaScript SDK.
5+
keywords: javascript, js
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
noTitleIndex: false
9+
breadcrumbText: JavaScript
10+
permalink: /programming/javascript/index-v9.6.42.html
11+
---
12+
13+
# Dynamsoft Barcode Reader JavaScript Edition
14+
15+
Dynamsoft Barcode Reader (DBR) can be used in JavaScript to add barcode reading capabilities to websites running in modern browsers. It is ideal for
16+
17+
* Organizations who already have sophisticated websites and do not intend to develop mobile applications for the same purposes;
18+
* Organizations whose customers have no desire to install applications for temporary usage of their services.
19+
20+
To get a fast start, you can
21+
22+
* Read the [User Guide](user-guide/)
23+
* Try the [Samples and Demos](samples-demos/)
24+
25+
The following describes the highlights of DBR when used in JavaScript.
26+
27+
## Fast Integration
28+
29+
The following lines of code is all that is required to integrate DBR in JavaScript:
30+
31+
``` html
32+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dbr.js"></script>
33+
<script>
34+
// specify a license, you can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=intro&product=dbr&package=js to get your own trial license good for 30 days.
35+
Dynamsoft.DBR.BarcodeScanner.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
36+
(async()=>{
37+
let scanner = await Dynamsoft.DBR.BarcodeScanner.createInstance();
38+
scanner.onUniqueRead = (txt, result) => {
39+
// Do something with the "txt" found in the barcode
40+
};
41+
await scanner.show();
42+
})();
43+
</script>
44+
```
45+
46+
After the integration, end users of the web page can open it in a browser, access their cameras and read barcodes directly from the video input.
47+
48+
### Built-in Camera Control
49+
50+
Customers generally need to scan a barcode on the fly at which time there is no better input than the camera hooked to or built into the device itself. DBR uses the powerful **MediaDevices** interface (provided by the browser itself) to instantly connect the video input of the camera with the back-end decoding engine.
51+
52+
### Interactive UI
53+
54+
Good interaction design is essential for a website, the same is true for SDKs such as DBR. As shown in the screenshot below, DBR streams the video on the page, guides the user where to aim and highlights the areas where barcodes are found.
55+
56+
![Interactive UI](assets/interactive-ui.png)
57+
58+
## High Performance
59+
60+
Barcode reading is usually just an auxiliary way to assist a small step in a complex workflow. Customers like the convenience, but if it takes too long or is error-prone, their patience will quickly run out. Therefore, high performance is crucial.
61+
62+
### Unparalleled Speed
63+
64+
DBR showcases Dynamsoft's cutting-edge technology in light-speed recognition of barcodes. In most cases, an image gets deblurred, binarized and read under 100 milliseconds.
65+
66+
### Proficiency in Handling Difficult Environments
67+
68+
The actual use environment is unpredictable. The barcode may appear distorted, inverted, or partially damaged; the background may be textured or spotted; the light may be very low, and there may be shadows and glare. DBR handles all these cases with its rich image processing algorithms through various adjustable settings.
69+
70+
### Exceptional Accuracy
71+
72+
DBR does a lot of preparation work to make sure the barcode is as legible as possible for the decoding engine to read. This ensures a very high accuracy. In addition, DBR achieves even higher accuracy through the following ways:
73+
74+
* DBR has a confidence score for each recognition which can be used to filter unwanted results;
75+
* In the case of continuous scanning, DBR compares the results of multiple consecutive recognitions and return only the results confirmed by at least two efforts.
76+
77+
Through many experiences, DBR has also cultivated its error correction ability against barcodes which do not strictly abide by the specification as well as deformed barcodes caused by improper printing.
78+
79+
## Next Step
80+
81+
Read the [User Guide](user-guide/) to start building your own websites with barcode reading capabilities.
82+
83+
## See Also
84+
85+
### API Reference
86+
87+
For a overview of the APIs, see the [API Reference](api-reference/).
88+
89+
### Release Notes
90+
91+
For a peek of DBR history, check the [Release Notes](release-notes/).

programming-old/javascript/samples-demos/helloworld-angular.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ npm install dynamsoft-javascript-barcode
4242
```typescript
4343
import { BarcodeReader } from 'dynamsoft-javascript-barcode';
4444
BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
45-
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].40/dist/";
45+
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/[email protected].42/dist/";
4646
```
4747

4848
> Note:

0 commit comments

Comments
 (0)