diff --git a/1.hello-world/1.hello-world.html b/1.hello-world/1.hello-world.html index d1d06bae..b63de137 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 2085e424..8b457b2b 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 79febccc..57a3387f 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 bad5d1ec..a621db7b 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 --> - + @@ -49,6 +49,12 @@

Settings for Deformed or Incomplete codes



+ +
+ +
+ +

@@ -103,6 +109,15 @@

Settings for Deformed or Incomplete codes

case "DRM_GENERAL": settings.furtherModes.deformationResistingModes[DRMCount] = Dynamsoft.DBR.EnumDeformationResistingMode.DRM_GENERAL; break; + case "DRM_BROAD_WARP": + settings.furtherModes.deformationResistingModes[DRMCount] = Dynamsoft.DBR.EnumDeformationResistingMode.DRM_BROAD_WARP; + break; + case "DRM_LOCAL_REFERENCE": + settings.furtherModes.deformationResistingModes[DRMCount] = Dynamsoft.DBR.EnumDeformationResistingMode.DRM_LOCAL_REFERENCE; + break; + case "DRM_DEWRINKLE": + settings.furtherModes.deformationResistingModes[DRMCount] = Dynamsoft.DBR.EnumDeformationResistingMode.DRM_DEWRINKLE; + break; case "DRM_SKIP": settings.furtherModes.deformationResistingModes[DRMCount] = Dynamsoft.DBR.EnumDeformationResistingMode.DRM_SKIP; break; diff --git a/3.settings/5.regionOfInterest-regionPredetection.html b/3.settings/5.regionOfInterest-regionPredetection.html index f720c339..368a43f5 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 57ae56a4..45d556eb 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 --> - +
@@ -31,13 +31,12 @@ * To use the library, you need to first specify a license key using the API "license" as shown below. */ - Dynamsoft.DBR.BarcodeReader.license = - "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"; + Dynamsoft.DBR.BarcodeReader.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"; /** * 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.3.1&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.6.0&utm_source=github#specify-the-license or contact support@dynamsoft.com. * LICENSE ALERT - THE END */ @@ -61,9 +60,7 @@ scanner.onFrameRead = (results) => { textareaResults.value = ""; for (let result of results) { - const format = result.barcodeFormat - ? result.barcodeFormatString - : result.barcodeFormatString_2; + const format = result.barcodeFormatString; const text = result.barcodeText; textareaResults.value += `${format}: ${text}\n`; } diff --git a/3.settings/initScanner.js b/3.settings/initScanner.js index 55aeb676..1e8bcdb8 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.3.1&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.6.0&utm_source=github#specify-the-license or contact support@dynamsoft.com. * LICENSE ALERT - THE END */ @@ -78,7 +78,7 @@ async function startReading() { let scanner = await pScanner; scanner.onFrameRead = (_results) => { for (let result of _results) { - const format = result.barcodeFormat ? result.barcodeFormatString : result.barcodeFormatString_2; + const format = result.barcodeFormatString; resultBox.value = format + ": " + result.barcodeText; } }; 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 e9b608ac..cdba0237 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.3.1&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.6.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 b30f3ee4..75ba86c2 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 @@

Read A Driver's License Read A Driver's License