Skip to content

Commit 2a6ca3c

Browse files
8.1.3
1 parent 2723c87 commit 2a6ca3c

File tree

116 files changed

+1320
-490
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1320
-490
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ yarn.lock
5959
!/dist/README.md
6060

6161
!/README.md
62+
!/README.NODE.md
6263
!/package.json
6364
!/LICENSE
6465

README.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
![Dynamsoft JavaScript Barcode SDK](https://www.dynamsoft.com/blog/wp-content/uploads/2018/12/blog_dbr6.4.1db06493aba126f0c7f177687cf56a9038dd655a1fd2d4374ab571ce738111858.png)
99

10-
[Dynamsoft JavaScript Barcode SDK for Web](https://www.dynamsoft.com/Products/barcode-recognition-javascript.aspx) is a JavaScript library for barcode scanning based on the **WebAssembly** technology. It supports real-time localization and decoding of various barcode types. The library is capable of scanning barcodes from static images as well as directly from live video streams. It also supports reading multiple barcodes at once.
10+
[Dynamsoft JavaScript Barcode SDK](https://www.dynamsoft.com/Products/barcode-recognition-javascript.aspx) is a JavaScript library for barcode scanning based on the **WebAssembly** technology. It supports real-time localization and decoding of various barcode types. The library is capable of scanning barcodes from static images as well as directly from live video streams. It also supports reading multiple barcodes at once.
1111

12-
> Also see [Dynamsoft JavaScript Barcode SDK for Node](https://github.com/dynamsoft-dbr/node-javascript-barcode).
12+
> Also see [Dynamsoft JavaScript Barcode SDK for Node](https://github.com/Dynamsoft/javascript-barcode/blob/master/README.NODE.md).
1313
1414
## Install
1515

@@ -25,9 +25,9 @@ $ npm install dynamsoft-javascript-barcode --save
2525

2626
cdn
2727
```html
28-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
28+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
2929
<!-- or -->
30-
<script src="https://unpkg.com/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
30+
<script src="https://unpkg.com/[email protected].3/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
3131
```
3232

3333
[Download zip](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx?edition=js)
@@ -36,7 +36,7 @@ cdn
3636
Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a valid license and update `PRODUCT-KEYS`:
3737

3838
```html
39-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
39+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
4040
```
4141

4242
## Quick Usage
@@ -45,7 +45,7 @@ Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a va
4545
<!DOCTYPE html>
4646
<html>
4747
<body>
48-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
48+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
4949
<script>
5050
let scanner = null;
5151
(async()=>{
@@ -75,7 +75,7 @@ DBR.BarcodeReader.productKeys = 'PRODUCT-KEYS';
7575
7676
(async()=>{
7777
let reader = await DBR.BarcodeReader.createInstance();
78-
for(let result of await reader.decode('https://demo.dynamsoft.com/dbr/img/AllSupportedBarcodeTypes.png')){
78+
for(let result of await reader.decode('https://demo.dynamsoft.com/barcode-reader/img/AllSupportedBarcodeTypes.png')){
7979
console.log(result.barcodeText);
8080
}
8181
reader.destroy();
@@ -188,7 +188,7 @@ DBR.BarcodeReader.productKeys = 'PRODUCT-KEYS';
188188

189189
## Live Demo
190190

191-
The following is a screenshot of the live demo. Try it [here](https://demo.dynamsoft.com/dbr_wasm/barcode_reader_javascript.html).
191+
The following is a screenshot of the live demo. Try it [here](https://demo.dynamsoft.com/barcode-reader-js/).
192192

193193
<img src="https://raw.githubusercontent.com/dynamsoft-dbr/javascript-barcode/dac614f8033661901d85381dfaff8d612115862a/img/dbr-wasm-demo-scaning.jpg">
194194

@@ -216,7 +216,7 @@ Create an HTML file with the following content. Deploy this to your web server a
216216
<html>
217217
<body>
218218
<!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
219-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
219+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
220220
<script>
221221
let scanner = null;
222222
(async()=>{
@@ -275,13 +275,13 @@ Now, take a look at the sample code. You can find that there is nothing but two
275275
* The following script includes the core library in the application via a [jsDelivr](https://www.jsdelivr.com/) CDN
276276

277277
```javascript
278-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
278+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
279279
```
280280

281281
The same can be done with other CDNs like `unpkg`
282282

283283
```javascript
284-
<script src="https://unpkg.com/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
284+
<script src="https://unpkg.com/[email protected].3/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
285285
```
286286

287287
> **NOTE**: : Since we do change the library a bit in each release, to make sure your application doesn't get interrupted by automatic updates, use a specific version in your production environment, as shown above. Using a general major version like `@7` is not recommended.
@@ -389,26 +389,35 @@ As you can see in the code, there are three categories of configurations.
389389

390390
e.g.
391391
```js
392-
await barcodeScanner.updateRuntimeSettings("single");
392+
await scanner.updateRuntimeSettings("single");
393393
```
394394
```js
395-
await barcodeScanner.updateRuntimeSettings("speed");
395+
await scanner.updateRuntimeSettings("speed");
396396
```
397397
```js
398-
await barcodeScanner.updateRuntimeSettings("balance");
398+
await scanner.updateRuntimeSettings("balance");
399399
```
400400
```js
401-
await barcodeScanner.updateRuntimeSettings("coverage");
401+
await scanner.updateRuntimeSettings("coverage");
402402
```
403403
```js
404-
let settings = await barcodeScanner.getRuntimeSettings();
404+
let settings = await scanner.getRuntimeSettings();
405405
settings.localizationModes = [
406406
Dynamsoft.DBR.EnumLocalizationMode.LM_CONNECTED_BLOCKS,
407407
Dynamsoft.DBR.EnumLocalizationMode.LM_SCAN_DIRECTLY,
408408
Dynamsoft.DBR.EnumLocalizationMode.LM_LINES, 0, 0, 0, 0, 0];
409409
settings.deblurLevel = 2;
410-
await barcodeScanner.updateRuntimeSettings(settings);
410+
await scanner.updateRuntimeSettings(settings);
411411
```
412+
413+
See [Barcode reading settings Guide](https://www.dynamsoft.com/barcode-reader/programming/cplusplus/user-guide.html?ver=latest#use-publicruntimesettings-struct-to-change-settings) for basic usage.
414+
415+
See [C++ API RuntimeSettings](https://www.dynamsoft.com/barcode-reader/programming/c-cplusplus/struct/PublicRuntimeSettings.html) for more details.
416+
417+
To find out which settings best suit your usage scenario, visit [DBR Main Online Demo](https://demo.dynamsoft.com/barcode-reader/).
418+
419+
Any questions, please contact [Dynamsoft support](https://www.dynamsoft.com/Company/Contact.aspx).
420+
412421
* `get/updateScanSettings`: Configures the behavior of the scanner which includes `duplicateForgetTime`, `intervalTime`, etc.
413422

414423
### Customizing the UI
@@ -431,7 +440,7 @@ The following introduces the 3rd way. Check out the following code on how it's d
431440
<video class="dbrScanner-video" playsinline="true"></video>
432441
</div>
433442
<!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
434-
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
443+
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
435444
<script>
436445
let scanner = null;
437446
(async()=>{
@@ -589,7 +598,7 @@ Dynamsoft.DBR.BarcodeReader.engineResourcePath = "url/to/the/dir/";
589598

590599
## Known Issues
591600

592-
* We use `webgl` in `BarcodeScannner` by default. If you need a specific resolution like `800 * 600` and find the barcode area is wrong, you can turn `webgl` off by setting `scanner._bUseWebgl = false;`.
601+
* <del>We use `webgl` in `BarcodeScannner` by default. If you need a specific resolution like `800 * 600` and find the barcode area is wrong, you can turn `webgl` off by setting `scanner._bUseWebgl = false;`.</del> Fixed in 8.1.2.
593602

594603
## Changelog
595604

dist/dbr-8.1.2.wasm

-2.79 MB
Binary file not shown.

0 commit comments

Comments
 (0)