From e381780e9c5fa42fc8874bb67fba2dfb4edfdeb4 Mon Sep 17 00:00:00 2001 From: DMGithubPublisher Date: Tue, 16 Mar 2021 13:38:45 +0800 Subject: [PATCH] 8.2.0 --- README.NODE.md | 20 ++-- README.md | 52 ++++---- dist/README.md | 2 +- dist/dbr-8.1.3.full.wasm | Bin 4373085 -> 0 bytes dist/dbr-8.1.3.worker.js | 112 ------------------ dist/dbr-8.2.0.full.wasm | Bin 0 -> 4463323 bytes ....3.full.wasm.js => dbr-8.2.0.full.wasm.js} | 14 +-- ...br-8.1.3.node.wasm => dbr-8.2.0.node.wasm} | Bin 5001916 -> 5090208 bytes ....3.node.wasm.js => dbr-8.2.0.node.wasm.js} | 18 +-- dist/{dbr-8.1.3.wasm => dbr-8.2.0.wasm} | Bin 2921957 -> 2919278 bytes dist/{dbr-8.1.3.wasm.js => dbr-8.2.0.wasm.js} | 14 +-- dist/dbr-8.2.0.worker.js | 112 ++++++++++++++++++ dist/dbr.browser.mjs | 4 +- dist/dbr.d.ts | 2 +- dist/dbr.js | 4 +- dist/dbr.mjs | 4 +- dist/dbr.reference.d.ts | 2 +- doc/api reference/classes/barcodereader.html | 6 +- doc/api reference/classes/barcodescanner.html | 34 +++--- .../enumaccompanyingtextrecognitionmode.html | 6 +- .../enums/enumbarcodecolourmode.html | 6 +- .../enums/enumbarcodecomplementmode.html | 6 +- .../enums/enumbarcodeformat.html | 6 +- .../enums/enumbarcodeformat_2.html | 6 +- .../enums/enumbinarizationmode.html | 6 +- doc/api reference/enums/enumchargeway.html | 6 +- .../enums/enumclaritycalculationmethod.html | 6 +- .../enums/enumclarityfiltermode.html | 6 +- .../enums/enumcolourclusteringmode.html | 6 +- .../enums/enumcolourconversionmode.html | 6 +- doc/api reference/enums/enumconflictmode.html | 6 +- doc/api reference/enums/enumdeblurmode.html | 6 +- .../enums/enumdeformationresistingmode.html | 6 +- .../enums/enumdpmcodereadingmode.html | 6 +- doc/api reference/enums/enumerrorcode.html | 6 +- .../enumgrayscaletransformationmode.html | 6 +- .../enums/enumimagepixelformat.html | 6 +- .../enums/enumimagepreprocessingmode.html | 6 +- .../enums/enumimresultdatatype.html | 6 +- .../enumintermediateresultsavingmode.html | 6 +- .../enums/enumintermediateresulttype.html | 6 +- .../enums/enumlicensemodule.html | 6 +- .../enums/enumlocalizationmode.html | 6 +- .../enums/enumpdfreadingmode.html | 6 +- .../enums/enumqrcodeerrorcorrectionlevel.html | 6 +- .../enums/enumregionpredetectionmode.html | 6 +- .../enums/enumresultcoordinatetype.html | 6 +- doc/api reference/enums/enumresulttype.html | 6 +- doc/api reference/enums/enumscaleupmode.html | 6 +- .../enums/enumterminatephase.html | 6 +- .../enums/enumtextassistedcorrectionmode.html | 6 +- .../enums/enumtextfiltermode.html | 6 +- .../enums/enumtextresultordermode.html | 6 +- .../enums/enumtexturedetectionmode.html | 6 +- doc/api reference/globals.html | 8 +- doc/api reference/index.html | 60 +++++----- .../interfaces/barcodereaderexception.html | 6 +- doc/api reference/interfaces/framefilter.html | 6 +- .../interfaces/localizationresult.html | 6 +- .../interfaces/regiondefinition.html | 6 +- .../interfaces/runtimesettings.html | 6 +- .../interfaces/scanneropencallbackinfo.html | 6 +- .../interfaces/scannerplaycallbackinfo.html | 6 +- .../scannerupdatedevicecallbackinfo.html | 6 +- .../interfaces/scansettings.html | 6 +- doc/api reference/interfaces/textresult.html | 6 +- .../interfaces/videodeviceinfo.html | 6 +- example/hybrid/electron/package.json | 2 +- example/hybrid/nwjs/package.json | 2 +- example/node/helloworld.js | 2 +- example/node/helloworld.mjs | 2 +- example/web/angular/package.json | 2 +- example/web/angular/src/app/dbr.ts | 4 +- example/web/angularDart/web/index.html | 4 +- example/web/debug/public/index.html | 4 +- .../index.html | 4 +- example/web/esmodule.html | 6 +- example/web/gatsby/package.json | 2 +- example/web/gatsby/src/dbr.js | 4 +- example/web/helloworld.html | 4 +- example/web/nextjs/dbr.js | 4 +- example/web/nextjs/package.json | 2 +- example/web/nuxtjs/dbr.js | 4 +- example/web/nuxtjs/package.json | 2 +- example/web/pwa/index.html | 4 +- example/web/react/package.json | 2 +- example/web/react/src/dbr.js | 4 +- example/web/requirejs.html | 6 +- example/web/typescript/index.html | 4 +- example/web/typescript/package.json | 2 +- example/web/typescript/script.ts | 4 +- example/web/vue/package.json | 2 +- example/web/vue/src/dbr.js | 4 +- example/web/webpack/package.json | 2 +- example/web/webpack/src/index.js | 4 +- package.js | 14 +-- package.json | 2 +- 97 files changed, 426 insertions(+), 426 deletions(-) delete mode 100644 dist/dbr-8.1.3.full.wasm delete mode 100644 dist/dbr-8.1.3.worker.js create mode 100644 dist/dbr-8.2.0.full.wasm rename dist/{dbr-8.1.3.full.wasm.js => dbr-8.2.0.full.wasm.js} (98%) rename dist/{dbr-8.1.3.node.wasm => dbr-8.2.0.node.wasm} (53%) rename dist/{dbr-8.1.3.node.wasm.js => dbr-8.2.0.node.wasm.js} (98%) rename dist/{dbr-8.1.3.wasm => dbr-8.2.0.wasm} (53%) rename dist/{dbr-8.1.3.wasm.js => dbr-8.2.0.wasm.js} (99%) create mode 100644 dist/dbr-8.2.0.worker.js diff --git a/README.NODE.md b/README.NODE.md index 4e0ae2d5..438d6a2f 100644 --- a/README.NODE.md +++ b/README.NODE.md @@ -1,8 +1,8 @@ # Dynamsoft JavaScript Barcode SDK for Node -> This library is the Node.js edition of Dynamsoft Barcode Reader. If you are looking to implement barcode reading feature in a web page, please check out the other library [Dynamsoft JavaScript Barcode SDK for Web](https://github.com/dynamsoft-dbr/javascript-barcode/). +> This library is the Node.js edition of Dynamsoft Barcode Reader. If you are looking to implement barcode reading feature in a web page, please check out the other library [Dynamsoft JavaScript Barcode SDK for Web](https://github.com/dynamsoft-dbr/javascript-barcode/?utm_source=github&package=js). -Both 1D and 2D barcode symbiology are supported including the popular `Code 39`, `EAN-13`, `QR`, `PDF417`, etc.+ Find the full list [here](https://www.dynamsoft.com/Products/Dynamic-Barcode-Reader.aspx). +Both 1D and 2D barcode symbiology are supported including the popular `Code 39`, `EAN-13`, `QR`, `PDF417`, etc.+ Find the full list [here](https://www.dynamsoft.com/barcode-reader/overview/?utm_source=github&package=js). The library is based on `webassembly` which has been an official feature of Node.js since `LTS 8`. If you are using Node.js LTS 8 and have no plan to upgrade it, check out [how to use the library in Node.js LTS 8](#how-to-use-the-library-in-nodejs-lts-8). That said, Node.js version >= LTS 12 is recommended because the library will try to use `worker_threads` when decoding. @@ -62,9 +62,9 @@ let results = await reader.decode('https://demo.dynamsoft.com/barcode-reader/img > **NOTE** > The following image formats are supported by default: `png`, `jpg`, `bmp`, `gif`. > -> If you want to decode other files like `pdf`'s, you need to convert them to images first. Contact [Dynamsoft Support](https://www.dynamsoft.com/Company/Contact.aspx) to find out more. +> If you want to decode other files like `pdf`'s, you need to convert them to images first. Contact [Dynamsoft Support](https://www.dynamsoft.com/company/contact/?utm_source=github&package=js) to find out more. > -> If you want to decode raw image data (`RGBA`) from sources like a camera. You can use the API `deocdeBuffer`. Check out [C++ API decodeBuffer](https://www.dynamsoft.com/barcode-reader/programming/cplusplus/api-reference/cbarcodereader-methods/decode.html?ver=latest#decodebuffer) for more details. +> If you want to decode raw image data (`RGBA`) from sources like a camera. You can use the API `deocdeBuffer`. Check out [C++ API decodeBuffer](https://www.dynamsoft.com/barcode-reader/programming/cplusplus/api-reference/cbarcodereader-methods/decode.html?ver=latest&utm_source=github&package=js#decodebuffer) for more details. * Print out the results @@ -80,7 +80,7 @@ for(let result of results){ > node your-code.js ``` -Last not but least, don't forget to set a `productKey`! If you don't have a key yet, click [here](https://www.dynamsoft.com/customer/license/trialLicense) to get one. +Last not but least, don't forget to set a `productKey`! If you don't have a key yet, click [here](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=github&package=js) to get one. ```js DBR.BarcodeReader.productKeys = 'PRODUCT-KEYS'; @@ -90,7 +90,7 @@ DBR.BarcodeReader.productKeys = 'PRODUCT-KEYS'; ```js let DBR = require('dynamsoft-node-barcode'); -// Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license +// Please visit https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=github&package=js to get a trial license DBR.BarcodeReader.productKeys = 'PRODUCT-KEYS'; (async()=>{ @@ -133,13 +133,13 @@ settings.deblurLevel = 2; await reader.updateRuntimeSettings(settings); ``` -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. +See [Barcode reading settings Guide](https://www.dynamsoft.com/barcode-reader/programming/cplusplus/user-guide.html?ver=latest#use-publicruntimesettings-struct-to-change-settings?utm_source=github&package=js) for basic usage. -See [C++ API RuntimeSettings](https://www.dynamsoft.com/barcode-reader/programming/c-cplusplus/struct/PublicRuntimeSettings.html) for more details. +See [C++ API RuntimeSettings](https://www.dynamsoft.com/barcode-reader/programming/c-cplusplus/struct/PublicRuntimeSettings.html?utm_source=github&package=js) for more details. -To find out which settings best suit your usage scenario, visit [DBR Main Online Demo](https://demo.dynamsoft.com/dbr/barcodereaderdemo.aspx). +To find out which settings best suit your usage scenario, visit [DBR Main Online Demo](https://demo.dynamsoft.com/barcode-reader/?utm_source=github&package=js). -Any questions, please contact [Dynamsoft support](https://www.dynamsoft.com/Company/Contact.aspx). +Any questions, please contact [Dynamsoft support](https://www.dynamsoft.com/company/contact/?utm_source=github&package=js). diff --git a/README.md b/README.md index cd983ea7..0f5faed6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ![Dynamsoft JavaScript Barcode SDK](https://www.dynamsoft.com/blog/wp-content/uploads/2018/12/blog_dbr6.4.1db06493aba126f0c7f177687cf56a9038dd655a1fd2d4374ab571ce738111858.png) -[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. +[Dynamsoft JavaScript Barcode SDK](https://www.dynamsoft.com/barcode-reader/sdk-javascript/?utm_source=github&package=js) 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. > Also see [Dynamsoft JavaScript Barcode SDK for Node](https://github.com/Dynamsoft/javascript-barcode/blob/master/README.NODE.md). @@ -25,18 +25,18 @@ $ npm install dynamsoft-javascript-barcode --save cdn ```html - + - + ``` -[Download zip](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx?edition=js) +[Download zip](https://www.dynamsoft.com/barcode-reader/downloads/?utm_source=github&package=js) ## License Key -Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a valid license and update `PRODUCT-KEYS`: +Please visit https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=github&package=js to get a valid license and update `PRODUCT-KEYS`: ```html - + ``` ## Quick Usage @@ -45,7 +45,7 @@ Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a va - + + + + ``` The same can be done with other CDNs like `unpkg` ```javascript - + ``` > **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. @@ -384,7 +384,7 @@ await scanner.updateScanSettings(scanSettings); As you can see in the code, there are three categories of configurations. * `get/updateVideoSettings`: Configures the data source, i.e., the video stream. These settings include which camera to use, the resolution, etc.. Learn more [here](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Syntax). -* `get/updateRuntimeSettings`: Configures the decode engine. Find a full list of these settings and their corresponding descriptions [here](https://www.dynamsoft.com/barcode-reader/programming/c-cplusplus/struct/PublicRuntimeSettings.html?ver=latest). +* `get/updateRuntimeSettings`: Configures the decode engine. Find a full list of these settings and their corresponding descriptions [here](https://www.dynamsoft.com/barcode-reader/programming/c-cplusplus/struct/PublicRuntimeSettings.html?ver=latest&utm_source=github&package=js). [Try in JSFiddle](https://jsfiddle.net/DynamsoftTeam/h3o4kfau/) e.g. @@ -410,13 +410,13 @@ As you can see in the code, there are three categories of configurations. await scanner.updateRuntimeSettings(settings); ``` - 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. + See [Barcode reading settings Guide](https://www.dynamsoft.com/barcode-reader/programming/cplusplus/user-guide.html?ver=latest&utm_source=github&package=js#use-publicruntimesettings-struct-to-change-settings) for basic usage. - See [C++ API RuntimeSettings](https://www.dynamsoft.com/barcode-reader/programming/c-cplusplus/struct/PublicRuntimeSettings.html) for more details. + See [C++ API RuntimeSettings](https://www.dynamsoft.com/barcode-reader/programming/c-cplusplus/struct/PublicRuntimeSettings.html?utm_source=github&package=js) for more details. - To find out which settings best suit your usage scenario, visit [DBR Main Online Demo](https://demo.dynamsoft.com/barcode-reader/). + To find out which settings best suit your usage scenario, visit [DBR Main Online Demo](https://demo.dynamsoft.com/barcode-reader/?utm_source=github&package=js). - Any questions, please contact [Dynamsoft support](https://www.dynamsoft.com/Company/Contact.aspx). + Any questions, please contact [Dynamsoft support](https://www.dynamsoft.com/Company/Contact.aspx?utm_source=github&package=js). * `get/updateScanSettings`: Configures the behavior of the scanner which includes `duplicateForgetTime`, `intervalTime`, etc. @@ -439,8 +439,8 @@ The following introduces the 3rd way. Check out the following code on how it's d
- - + + + + diff --git a/example/web/debug/public/index.html b/example/web/debug/public/index.html index a9a74cd8..75cdb9aa 100644 --- a/example/web/debug/public/index.html +++ b/example/web/debug/public/index.html @@ -17,8 +17,8 @@
- - + + + + + + + + + diff --git a/example/web/typescript/package.json b/example/web/typescript/package.json index 73b5cb15..71f3de41 100644 --- a/example/web/typescript/package.json +++ b/example/web/typescript/package.json @@ -2,7 +2,7 @@ "name": "dbrjs-ts", "version": "1.0.0", "dependencies": { - "dynamsoft-javascript-barcode": "8.1.3", + "dynamsoft-javascript-barcode": "8.2.0", "@types/node": "^13.9.8", "typescript": "^3.8.3" } diff --git a/example/web/typescript/script.ts b/example/web/typescript/script.ts index 66798d03..341afdba 100644 --- a/example/web/typescript/script.ts +++ b/example/web/typescript/script.ts @@ -1,7 +1,7 @@ /// -Dynamsoft.DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.1.3/dist/"; -// Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license +Dynamsoft.DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.2.0/dist/"; +// Please visit https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=github&package=js to get a trial license Dynamsoft.DBR.BarcodeReader.productKeys = "PRODUCT-KEYS"; // Dynamsoft.DBR.BarcodeReader._bUseFullFeature = true; // Control of loading min wasm or full wasm. diff --git a/example/web/vue/package.json b/example/web/vue/package.json index f5dcefee..c24cbd6a 100644 --- a/example/web/vue/package.json +++ b/example/web/vue/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "core-js": "^3.4.3", - "dynamsoft-javascript-barcode": "8.1.3", + "dynamsoft-javascript-barcode": "8.2.0", "vue": "^2.6.10" }, "devDependencies": { diff --git a/example/web/vue/src/dbr.js b/example/web/vue/src/dbr.js index b79cd126..88f33684 100644 --- a/example/web/vue/src/dbr.js +++ b/example/web/vue/src/dbr.js @@ -1,6 +1,6 @@ import DBR from "dynamsoft-javascript-barcode"; -DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.1.3/dist/"; -// Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license +DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.2.0/dist/"; +// Please visit https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=github&package=js to get a trial license DBR.BarcodeReader.productKeys = "PRODUCT-KEYS"; // DBR.BarcodeReader._bUseFullFeature = true; // Control of loading min wasm or full wasm. export default DBR; diff --git a/example/web/webpack/package.json b/example/web/webpack/package.json index b9b8f9b9..1108bf09 100644 --- a/example/web/webpack/package.json +++ b/example/web/webpack/package.json @@ -12,6 +12,6 @@ "webpack": "^4.41.3" }, "dependencies": { - "dynamsoft-javascript-barcode": "8.1.3" + "dynamsoft-javascript-barcode": "8.2.0" } } diff --git a/example/web/webpack/src/index.js b/example/web/webpack/src/index.js index f5cefc40..ec05d31b 100644 --- a/example/web/webpack/src/index.js +++ b/example/web/webpack/src/index.js @@ -1,7 +1,7 @@ /* eslint-disable no-console */ import { BarcodeReader, BarcodeScanner } from "dynamsoft-javascript-barcode"; -BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.1.3/dist/"; -// Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license +BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.2.0/dist/"; +// Please visit https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr&utm_source=github&package=js to get a trial license BarcodeReader.productKeys = "PRODUCT-KEYS"; // BarcodeReader._bUseFullFeature = true; // Control of loading min wasm or full wasm. diff --git a/package.js b/package.js index 8e663cbf..764cb444 100644 --- a/package.js +++ b/package.js @@ -12,13 +12,13 @@ Package.onUse(function(api) { "/dist/dbr.js", "/dist/dbr.mjs", "/dist/dbr.browser.mjs", - "/dist/dbr-8.1.3.worker.js", - "/dist/dbr-8.1.3.wasm.js", - "/dist/dbr-8.1.3.wasm", - "/dist/dbr-8.1.3.full.wasm.js", - "/dist/dbr-8.1.3.full.wasm", - "/dist/dbr-8.1.3.node.wasm.js", - "/dist/dbr-8.1.3.node.wasm", + "/dist/dbr-8.2.0.worker.js", + "/dist/dbr-8.2.0.wasm.js", + "/dist/dbr-8.2.0.wasm", + "/dist/dbr-8.2.0.full.wasm.js", + "/dist/dbr-8.2.0.full.wasm", + "/dist/dbr-8.2.0.node.wasm.js", + "/dist/dbr-8.2.0.node.wasm", "/dist/dbr.d.ts", "/dist/dbr.reference.d.ts", "/dist/dbr.scanner.html" diff --git a/package.json b/package.json index d4739351..aec41057 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dynamsoft-javascript-barcode", - "version": "8.1.3", + "version": "8.2.0", "description": "Dynamsoft Barcode Reader JS is a recognition SDK which enables you to embed barcode reading functionality in your web, desktop, and mobile applications. With a few lines of JavaScript code, you can develop a robust application to scan a linear barcode, QR Code, DaraMatrix, PDF417, and Aztec Code.", "files": [ "/dist/dbr.js",