From 929fc45c21f4697304d9635a3cb60063fce020d8 Mon Sep 17 00:00:00 2001
From: Cube <877211593@qq.com>
Date: Wed, 21 Sep 2022 17:32:40 +0800
Subject: [PATCH 1/4] update comments; add a new sample
'6.dense-barcodes.html';
---
1.hello-world/1.hello-world.html | 18 +++---
1.hello-world/12.read-video-es6.html | 2 +-
3.settings/6.dense-barcodes.html | 95 ++++++++++++++++++++++++++++
3.settings/README.md | 4 ++
README.md | 1 +
index.html | 4 ++
6 files changed, 114 insertions(+), 10 deletions(-)
create mode 100644 3.settings/6.dense-barcodes.html
diff --git a/1.hello-world/1.hello-world.html b/1.hello-world/1.hello-world.html
index 9b6208d3..4bb3f0e4 100644
--- a/1.hello-world/1.hello-world.html
+++ b/1.hello-world/1.hello-world.html
@@ -31,7 +31,7 @@
try {
const scanner = await Dynamsoft.DBR.BarcodeScanner.createInstance();
/**
- * onFrameRead is triggered after the library finishes reading a frame image.
+ * 'onFrameRead' is triggered after the library finishes reading a frame image.
* There can be multiple barcodes on one image.
*/
scanner.onFrameRead = results => {
@@ -42,18 +42,18 @@
}
};
/**
- * onUniqueRead is triggered only when a 'new' barcode is found.
+ * 'onUniqueRead' is triggered only when a 'new' barcode is found.
* The amount of time that the library 'remembers' a barcode is defined by
* "duplicateForgetTime" in "ScanSettings". By default it is set to 3000 ms.
*/
scanner.onUniqueRead = (txt, result) => {
- alert(txt);
- console.log("Unique Code Found: ", result);
- }
- /**
- * show() opens the camera and shows the video stream on the page.
- * After that, the library starts to scan the frame images continuously.
- */
+ alert(txt);
+ console.log("Unique Code Found: ", result);
+ }
+ /**
+ * 'show()' opens the camera and shows the video stream on the page.
+ * After that, the library starts to scan the frame images continuously.
+ */
await scanner.show();
} catch (ex) {
let errMsg;
diff --git a/1.hello-world/12.read-video-es6.html b/1.hello-world/12.read-video-es6.html
index 17e10d90..3fc884ce 100644
--- a/1.hello-world/12.read-video-es6.html
+++ b/1.hello-world/12.read-video-es6.html
@@ -34,7 +34,7 @@
Hello World for ES6
try {
const scanner = await (pScanner = pScanner || BarcodeScanner.createInstance());
/*
- * onFrameRead is triggered after the library finishes reading a frame.
+ * 'onFrameRead' is triggered after the library finishes reading a frame.
* There can be one or multiple barcodes on each frame.
*/
scanner.onFrameRead = results => {
diff --git a/3.settings/6.dense-barcodes.html b/3.settings/6.dense-barcodes.html
new file mode 100644
index 00000000..a5438155
--- /dev/null
+++ b/3.settings/6.dense-barcodes.html
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+
+
+ Dynamsoft Barcode Reader Sample - Dense Barcodes
+
+
+
+
+
+
+
+
+
diff --git a/3.settings/README.md b/3.settings/README.md
index be4f9eb9..e8c8db33 100644
--- a/3.settings/README.md
+++ b/3.settings/README.md
@@ -63,6 +63,10 @@ To learn more about `Region` and how to use them, please refer to this [article]
Region detection can also be used to pre-detect the region of interest of a large image to get several areas where the barcodes may exist to reduce processing time. The different modes of [RegionPredetectionModes](https://www.dynamsoft.com/barcode-reader/programming/javascript/api-reference/interface/FurtherModes.html?ver=latest#regionpredetectionmodes) correspond to different scenarios, some of which are clarified [here](https://www.dynamsoft.com/barcode-reader/parameters/scenario-settings/how-to-use-region-predetection.html).
+## Dealing with Dense Barcodes
+
+
+
## Support
If you have any questions, feel free to contact Dynamsoft support via [email](mailto:support@dynamsoft.com) or [live chat](https://www.dynamsoft.com/barcode-reader/overview/) via the "Let's Chat" button.
diff --git a/README.md b/README.md
index f31d8994..66269535 100644
--- a/README.md
+++ b/README.md
@@ -50,6 +50,7 @@ How to configure different settings of the barcode scanning library.
* [**Blurry or Small codes**](https://demo.dynamsoft.com/samples/dbr/js/3.settings/3.blurred-small-barcodes.html?utm_source=sampleReadme): Set `DeblurModes` and `ScaleUpModes` for decoding blurry or small barcodes.
* [**Deformed or Incomplete codes**](https://demo.dynamsoft.com/samples/dbr/js/3.settings/4.deformed-incomplete-barcodes.html?utm_source=sampleReadme): Set `DeformationResistingModes` or `BarcodeComplementModes` for decoding deformed or incomplete barcodes.
* [**Define or Detect the Region**](https://demo.dynamsoft.com/samples/dbr/js/3.settings/5.regionOfInterest-regionPredetection.html?utm_source=sampleReadme): Set the region of interest manually or `regionPredetectionModes` to speed up the barcode reading process.
+* [**Dense codes**](https://demo.dynamsoft.com/samples/dbr/js/3.settings/6.dense-barcodes.html?utm_source=sampleReadme): Set `dense` template for decoding dense barcodes.
### Use Cases
diff --git a/index.html b/index.html
index 629bfb98..247dac36 100644
--- a/index.html
+++ b/index.html
@@ -188,6 +188,10 @@
From 5a71c3c0b279742c47872e47ddb6e387ea07065a Mon Sep 17 00:00:00 2001
From: Tom Kent
Date: Wed, 21 Sep 2022 17:55:45 +0800
Subject: [PATCH 2/4] add info for dense codes sample
read me for dense codes
---
3.settings/README.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/3.settings/README.md b/3.settings/README.md
index e8c8db33..f860ae57 100644
--- a/3.settings/README.md
+++ b/3.settings/README.md
@@ -65,7 +65,12 @@ Region detection can also be used to pre-detect the region of interest of a larg
## Dealing with Dense Barcodes
+Some barcodes are designed to hold a lot of information which makes them very dense. To read such barcodes, we need to do two things
+1. Use a high resolution
+2. Use the built-in "dense" template
+
+Check out the code for more information.
## Support
From 835b814065796726eb245a2de4e4c3b3591d849d Mon Sep 17 00:00:00 2001
From: Cube <877211593@qq.com>
Date: Thu, 22 Sep 2022 10:01:06 +0800
Subject: [PATCH 3/4] update version to 9.2.14;
---
1.hello-world/1.hello-world.html | 4 ++--
1.hello-world/10.read-video-pwa/helloworld-pwa.html | 4 ++--
1.hello-world/11.read-video-requirejs.html | 6 +++---
1.hello-world/12.read-video-es6.html | 6 +++---
1.hello-world/13.read-video-react-ts/package.json | 2 +-
1.hello-world/13.read-video-react-ts/src/dbr.ts | 4 ++--
1.hello-world/2.read-an-image.html | 4 ++--
1.hello-world/3.read-video-angular/package.json | 2 +-
1.hello-world/3.read-video-angular/src/app/dbr.ts | 4 ++--
1.hello-world/4.read-video-react/package.json | 2 +-
1.hello-world/4.read-video-react/src/dbr.js | 4 ++--
1.hello-world/5.read-video-vue/package.json | 2 +-
1.hello-world/5.read-video-vue/src/dbr.js | 4 ++--
1.hello-world/6.read-video-vue3/package.json | 2 +-
1.hello-world/6.read-video-vue3/src/dbr.js | 4 ++--
1.hello-world/7.read-video-nextjs/dbr.js | 4 ++--
1.hello-world/7.read-video-nextjs/package.json | 2 +-
1.hello-world/8.read-video-nuxtjs/dbr.js | 4 ++--
1.hello-world/8.read-video-nuxtjs/package.json | 2 +-
1.hello-world/9.read-video-electron/action.js | 2 +-
1.hello-world/9.read-video-electron/package.json | 2 +-
2.ui-tweaking/1.read-video-show-result.html | 4 ++--
2.ui-tweaking/2.read-video-no-extra-control.html | 4 ++--
2.ui-tweaking/3.read-video-with-external-control.html | 4 ++--
2.ui-tweaking/4.difference-video-size.html | 4 ++--
2.ui-tweaking/5.read-video-with-custom-default-ui.html | 4 ++--
3.settings/1.barcodeFormats-expectedBarcodes.html | 2 +-
3.settings/2.localizationModes-binarizationModes.html | 2 +-
3.settings/3.blurred-small-barcodes.html | 2 +-
3.settings/4.deformed-incomplete-barcodes.html | 2 +-
3.settings/5.regionOfInterest-regionPredetection.html | 2 +-
3.settings/6.dense-barcodes.html | 4 ++--
3.settings/initScanner.js | 2 +-
4.use-case/1.fill-a-form-with-barcode-reading.html | 4 ++--
4.use-case/2.read-a-drivers-license.html | 4 ++--
5.others/debug/public/index.html | 4 ++--
36 files changed, 59 insertions(+), 59 deletions(-)
diff --git a/1.hello-world/1.hello-world.html b/1.hello-world/1.hello-world.html
index 4bb3f0e4..4a983fe2 100644
--- a/1.hello-world/1.hello-world.html
+++ b/1.hello-world/1.hello-world.html
@@ -12,7 +12,7 @@
Loading...
-
+
+
+
+
+
+
+
+
+
diff --git a/3.settings/2.localizationModes-binarizationModes.html b/3.settings/2.localizationModes-binarizationModes.html
index 5a4265f1..c4c94e21 100644
--- a/3.settings/2.localizationModes-binarizationModes.html
+++ b/3.settings/2.localizationModes-binarizationModes.html
@@ -13,7 +13,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
diff --git a/3.settings/3.blurred-small-barcodes.html b/3.settings/3.blurred-small-barcodes.html
index 591ee7f2..f602d328 100644
--- a/3.settings/3.blurred-small-barcodes.html
+++ b/3.settings/3.blurred-small-barcodes.html
@@ -13,7 +13,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
diff --git a/3.settings/4.deformed-incomplete-barcodes.html b/3.settings/4.deformed-incomplete-barcodes.html
index 702dfd02..ebc67e8f 100644
--- a/3.settings/4.deformed-incomplete-barcodes.html
+++ b/3.settings/4.deformed-incomplete-barcodes.html
@@ -13,7 +13,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
diff --git a/3.settings/5.regionOfInterest-regionPredetection.html b/3.settings/5.regionOfInterest-regionPredetection.html
index 42d475c9..882768ab 100644
--- a/3.settings/5.regionOfInterest-regionPredetection.html
+++ b/3.settings/5.regionOfInterest-regionPredetection.html
@@ -13,7 +13,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
diff --git a/3.settings/6.dense-barcodes.html b/3.settings/6.dense-barcodes.html
index a5438155..818780cb 100644
--- a/3.settings/6.dense-barcodes.html
+++ b/3.settings/6.dense-barcodes.html
@@ -18,7 +18,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
@@ -37,7 +37,7 @@
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
- * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.13&utm_source=github#specify-the-license or contact support@dynamsoft.com.
+ * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.14&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/
diff --git a/3.settings/initScanner.js b/3.settings/initScanner.js
index 28c0f9c3..bd110232 100644
--- a/3.settings/initScanner.js
+++ b/3.settings/initScanner.js
@@ -20,7 +20,7 @@ window.onload = async function () {
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
- * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.13&utm_source=github#specify-the-license or contact support@dynamsoft.com.
+ * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.14&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/
diff --git a/4.use-case/1.fill-a-form-with-barcode-reading.html b/4.use-case/1.fill-a-form-with-barcode-reading.html
index 783f93f6..06789440 100644
--- a/4.use-case/1.fill-a-form-with-barcode-reading.html
+++ b/4.use-case/1.fill-a-form-with-barcode-reading.html
@@ -13,7 +13,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
@@ -35,7 +35,7 @@
Click each input box to fill in!
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
- * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.13&utm_source=github#specify-the-license or contact support@dynamsoft.com.
+ * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.14&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/
diff --git a/4.use-case/2.read-a-drivers-license.html b/4.use-case/2.read-a-drivers-license.html
index 75df9667..048b85e1 100644
--- a/4.use-case/2.read-a-drivers-license.html
+++ b/4.use-case/2.read-a-drivers-license.html
@@ -36,7 +36,7 @@
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
- * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.14&utm_source=github#specify-the-license or contact support@dynamsoft.com.
+ * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.3.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/
- BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.2.14/dist/";
+ BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.3.0/dist/";
let pScanner = null;
(async function() {
try {
diff --git a/1.hello-world/12.read-video-es6.html b/1.hello-world/12.read-video-es6.html
index 0b0f89e7..b6632ac6 100644
--- a/1.hello-world/12.read-video-es6.html
+++ b/1.hello-world/12.read-video-es6.html
@@ -13,7 +13,7 @@
Hello World for ES6
Loading...
+
+
+
+
+
+
+
diff --git a/3.settings/2.localizationModes-binarizationModes.html b/3.settings/2.localizationModes-binarizationModes.html
index c4c94e21..d587d22c 100644
--- a/3.settings/2.localizationModes-binarizationModes.html
+++ b/3.settings/2.localizationModes-binarizationModes.html
@@ -13,7 +13,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
diff --git a/3.settings/3.blurred-small-barcodes.html b/3.settings/3.blurred-small-barcodes.html
index f602d328..2d11b278 100644
--- a/3.settings/3.blurred-small-barcodes.html
+++ b/3.settings/3.blurred-small-barcodes.html
@@ -13,7 +13,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
diff --git a/3.settings/4.deformed-incomplete-barcodes.html b/3.settings/4.deformed-incomplete-barcodes.html
index ebc67e8f..c4b5dae4 100644
--- a/3.settings/4.deformed-incomplete-barcodes.html
+++ b/3.settings/4.deformed-incomplete-barcodes.html
@@ -13,7 +13,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
diff --git a/3.settings/5.regionOfInterest-regionPredetection.html b/3.settings/5.regionOfInterest-regionPredetection.html
index 882768ab..82a59b0f 100644
--- a/3.settings/5.regionOfInterest-regionPredetection.html
+++ b/3.settings/5.regionOfInterest-regionPredetection.html
@@ -13,7 +13,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
diff --git a/3.settings/6.dense-barcodes.html b/3.settings/6.dense-barcodes.html
index 818780cb..5c52114d 100644
--- a/3.settings/6.dense-barcodes.html
+++ b/3.settings/6.dense-barcodes.html
@@ -18,7 +18,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
@@ -37,7 +37,7 @@
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
- * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.14&utm_source=github#specify-the-license or contact support@dynamsoft.com.
+ * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.3.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/
diff --git a/3.settings/initScanner.js b/3.settings/initScanner.js
index bd110232..7942fb1d 100644
--- a/3.settings/initScanner.js
+++ b/3.settings/initScanner.js
@@ -20,7 +20,7 @@ window.onload = async function () {
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
- * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.14&utm_source=github#specify-the-license or contact support@dynamsoft.com.
+ * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.3.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/
diff --git a/4.use-case/1.fill-a-form-with-barcode-reading.html b/4.use-case/1.fill-a-form-with-barcode-reading.html
index 06789440..033f2991 100644
--- a/4.use-case/1.fill-a-form-with-barcode-reading.html
+++ b/4.use-case/1.fill-a-form-with-barcode-reading.html
@@ -13,7 +13,7 @@
library offline. Please see the guide on how to host the library:
https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=latest#host-the-library-yourself-recommended
-->
-
+
@@ -35,7 +35,7 @@
Click each input box to fill in!
/**
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
- * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.2.14&utm_source=github#specify-the-license or contact support@dynamsoft.com.
+ * For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.3.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
* LICENSE ALERT - THE END
*/
diff --git a/4.use-case/2.read-a-drivers-license.html b/4.use-case/2.read-a-drivers-license.html
index 048b85e1..dbef3128 100644
--- a/4.use-case/2.read-a-drivers-license.html
+++ b/4.use-case/2.read-a-drivers-license.html
@@ -36,7 +36,7 @@