diff --git a/README.NODE.md b/README.NODE.md index 4e0ae2d..438d6a2 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 29559fe..e577411 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](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](https://w - + + + + ``` 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 a9a74cd..75cdb9a 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 73b5cb1..71f3de4 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 66798d0..341afdb 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 f5dcefe..c24cbd6 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 b79cd12..88f3368 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 b9b8f9b..1108bf0 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 f5cefc4..ec05d31 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 8e663cb..764cb44 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 d473935..aec4105 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",