dynamsoft-barcode-reader-bundle 11.4.3000 → 11.6.2000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LEGAL.txt +128 -8
- package/LICENSE +1 -1
- package/README.html +26 -26
- package/README.md +26 -26
- package/dist/dbr.bundle.d.ts +1867 -1665
- package/dist/dbr.bundle.esm.js +2 -2
- package/dist/dbr.bundle.js +2 -2
- package/dist/dbr.bundle.mjs +2 -2
- package/dist/dbr.bundle.worker.js +2 -2
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread-with-pdf.js +1 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread-with-pdf.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread-with-pdf.worker.js +6 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread.js +1 -1
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-pthread.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-with-pdf.js +1 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd-with-pdf.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd.js +1 -1
- package/dist/dynamsoft-barcode-reader-bundle-ml-simd.wasm +0 -0
- package/dist/dynamsoft-barcode-reader-bundle.js +1 -1
- package/dist/dynamsoft-barcode-reader-bundle.wasm +0 -0
- package/dist/models/Code128Decoder.data +0 -0
- package/dist/models/Code39ITFDecoder.data +0 -0
- package/dist/models/DataMatrixQRCodeDeblur.data +0 -0
- package/dist/models/DataMatrixQRCodeLocalization.data +0 -0
- package/dist/models/EAN13Decoder.data +0 -0
- package/dist/models/OneDDeblur.data +0 -0
- package/dist/models/OneDLocalization.data +0 -0
- package/dist/models/PDF417Deblur.data +0 -0
- package/dist/models/PDF417Localization.data +0 -0
- package/dist/templates/DBR-PresetTemplates.json +12 -1
- package/dist/ui/barcode-scanner.ui.xml +3 -3
- package/dist/ui/dce.mobile-native.ui.xml +222 -0
- package/package.json +79 -78
- package/samples.url +1 -1
- package/dist/parser-resources/MRTD.data +0 -1
package/LEGAL.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
\===================================================================================
|
|
2
2
|
>>>>>>>>>>>>>>>>>>>>>>>> dynamsoft-barcode-reader-bundle <<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
3
3
|
===================================================================================
|
|
4
4
|
|
|
@@ -322,6 +322,133 @@ license you like.
|
|
|
322
322
|
|
|
323
323
|
|
|
324
324
|
|
|
325
|
+
===================================================================================
|
|
326
|
+
OpenSSL
|
|
327
|
+
|
|
328
|
+
The OpenSSL toolkit stays under a double license, i.e. both the conditions of
|
|
329
|
+
the OpenSSL License and the original SSLeay license apply to the toolkit.
|
|
330
|
+
See below for the actual license texts.
|
|
331
|
+
|
|
332
|
+
OpenSSL License
|
|
333
|
+
---------------
|
|
334
|
+
|
|
335
|
+
/* ====================================================================
|
|
336
|
+
* Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved.
|
|
337
|
+
*
|
|
338
|
+
* Redistribution and use in source and binary forms, with or without
|
|
339
|
+
* modification, are permitted provided that the following conditions
|
|
340
|
+
* are met:
|
|
341
|
+
*
|
|
342
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
343
|
+
* notice, this list of conditions and the following disclaimer.
|
|
344
|
+
*
|
|
345
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
346
|
+
* notice, this list of conditions and the following disclaimer in
|
|
347
|
+
* the documentation and/or other materials provided with the
|
|
348
|
+
* distribution.
|
|
349
|
+
*
|
|
350
|
+
* 3. All advertising materials mentioning features or use of this
|
|
351
|
+
* software must display the following acknowledgment:
|
|
352
|
+
* "This product includes software developed by the OpenSSL Project
|
|
353
|
+
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
|
|
354
|
+
*
|
|
355
|
+
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
|
|
356
|
+
* endorse or promote products derived from this software without
|
|
357
|
+
* prior written permission. For written permission, please contact
|
|
358
|
+
* openssl-core@openssl.org.
|
|
359
|
+
*
|
|
360
|
+
* 5. Products derived from this software may not be called "OpenSSL"
|
|
361
|
+
* nor may "OpenSSL" appear in their names without prior written
|
|
362
|
+
* permission of the OpenSSL Project.
|
|
363
|
+
*
|
|
364
|
+
* 6. Redistributions of any form whatsoever must retain the following
|
|
365
|
+
* acknowledgment:
|
|
366
|
+
* "This product includes software developed by the OpenSSL Project
|
|
367
|
+
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
|
|
368
|
+
*
|
|
369
|
+
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
|
|
370
|
+
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
371
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
372
|
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
|
|
373
|
+
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
374
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
375
|
+
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
376
|
+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
377
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
378
|
+
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
379
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
380
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
381
|
+
* ====================================================================
|
|
382
|
+
*
|
|
383
|
+
* This product includes cryptographic software written by Eric Young
|
|
384
|
+
* (eay@cryptsoft.com). This product includes software written by Tim
|
|
385
|
+
* Hudson (tjh@cryptsoft.com).
|
|
386
|
+
*
|
|
387
|
+
*/
|
|
388
|
+
|
|
389
|
+
Original SSLeay License
|
|
390
|
+
-----------------------
|
|
391
|
+
|
|
392
|
+
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
|
|
393
|
+
* All rights reserved.
|
|
394
|
+
*
|
|
395
|
+
* This package is an SSL implementation written
|
|
396
|
+
* by Eric Young (eay@cryptsoft.com).
|
|
397
|
+
* The implementation was written so as to conform with Netscapes SSL.
|
|
398
|
+
*
|
|
399
|
+
* This library is free for commercial and non-commercial use as long as
|
|
400
|
+
* the following conditions are aheared to. The following conditions
|
|
401
|
+
* apply to all code found in this distribution, be it the RC4, RSA,
|
|
402
|
+
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
|
|
403
|
+
* included with this distribution is covered by the same copyright terms
|
|
404
|
+
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
|
|
405
|
+
*
|
|
406
|
+
* Copyright remains Eric Young's, and as such any Copyright notices in
|
|
407
|
+
* the code are not to be removed.
|
|
408
|
+
* If this package is used in a product, Eric Young should be given attribution
|
|
409
|
+
* as the author of the parts of the library used.
|
|
410
|
+
* This can be in the form of a textual message at program startup or
|
|
411
|
+
* in documentation (online or textual) provided with the package.
|
|
412
|
+
*
|
|
413
|
+
* Redistribution and use in source and binary forms, with or without
|
|
414
|
+
* modification, are permitted provided that the following conditions
|
|
415
|
+
* are met:
|
|
416
|
+
* 1. Redistributions of source code must retain the copyright
|
|
417
|
+
* notice, this list of conditions and the following disclaimer.
|
|
418
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
419
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
420
|
+
* documentation and/or other materials provided with the distribution.
|
|
421
|
+
* 3. All advertising materials mentioning features or use of this software
|
|
422
|
+
* must display the following acknowledgement:
|
|
423
|
+
* "This product includes cryptographic software written by
|
|
424
|
+
* Eric Young (eay@cryptsoft.com)"
|
|
425
|
+
* The word 'cryptographic' can be left out if the rouines from the library
|
|
426
|
+
* being used are not cryptographic related :-).
|
|
427
|
+
* 4. If you include any Windows specific code (or a derivative thereof) from
|
|
428
|
+
* the apps directory (application code) you must include an acknowledgement:
|
|
429
|
+
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
|
|
430
|
+
*
|
|
431
|
+
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
|
|
432
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
433
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
434
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
435
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
436
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
437
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
438
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
439
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
440
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
441
|
+
* SUCH DAMAGE.
|
|
442
|
+
*
|
|
443
|
+
* The licence and distribution terms for any publically available version or
|
|
444
|
+
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
|
445
|
+
* copied and put under another distribution licence
|
|
446
|
+
* [including the GNU Public Licence.]
|
|
447
|
+
*/
|
|
448
|
+
===================================================================================
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
325
452
|
===================================================================================
|
|
326
453
|
localForage
|
|
327
454
|
|
|
@@ -1280,10 +1407,3 @@ Apache License
|
|
|
1280
1407
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1281
1408
|
See the License for the specific language governing permissions and
|
|
1282
1409
|
limitations under the License.
|
|
1283
|
-
|
|
1284
|
-
====================================================================================
|
|
1285
|
-
|
|
1286
|
-
libzueci
|
|
1287
|
-
|
|
1288
|
-
A simple, standalone, BSD-3-Clause C library for converting UTF-8 to/from Extended Channel Interpretations, as defined by AIM ITS/04-023 International Technical Standard - Extended Channel Interpretations Part 3: Register (Version 2, February 2022).
|
|
1289
|
-
|
package/LICENSE
CHANGED
package/README.html
CHANGED
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
<span class="hljs-tag"><<span class="hljs-name">body</span>></span>
|
|
248
248
|
<span class="hljs-tag"><<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"camera-view-container"</span> <span class="hljs-attr">style</span>=<span class="hljs-string">"width: 100%; height: 60vh"</span>></span><span class="hljs-tag"></<span class="hljs-name">div</span>></span>
|
|
249
249
|
<span class="hljs-tag"><<span class="hljs-name">textarea</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"results"</span> <span class="hljs-attr">style</span>=<span class="hljs-string">"width: 100%; min-height: 10vh; font-size: 3vmin; overflow: auto"</span> <span class="hljs-attr">disabled</span>></span><span class="hljs-tag"></<span class="hljs-name">textarea</span>></span>
|
|
250
|
-
<span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.
|
|
250
|
+
<span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
251
251
|
<span class="hljs-tag"><<span class="hljs-name">script</span>></span><span class="javascript">
|
|
252
252
|
Dynamsoft.License.LicenseManager.initLicense(<span class="hljs-string">"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"</span>);
|
|
253
253
|
Dynamsoft.Core.CoreModule.loadWasm();
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
<span class="hljs-tag"></<span class="hljs-name">html</span>></span>
|
|
283
283
|
</code></pre>
|
|
284
284
|
<p align="center" style="text-align:center; white-space: normal; ">
|
|
285
|
-
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.
|
|
285
|
+
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.6.20/basics/hello-world.html" title="Code in Github" style="text-decoration:none;">
|
|
286
286
|
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg" alt="Code in Github" width="20" height="20" style="width:20px;height:20px;">
|
|
287
287
|
</a>
|
|
288
288
|
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/jsfiddle.svg" alt="Run via JSFiddle" width="20" height="20" style="width:20px;height:20px;" >
|
|
291
291
|
</a>
|
|
292
292
|
|
|
293
|
-
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.
|
|
293
|
+
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.20&utm_source=npm" title="Run in Dynamsoft" style="text-decoration:none;">
|
|
294
294
|
<img src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/svgs/solid/circle-play.svg" alt="Run in Dynamsoft" width="20" height="20" style="width:20px;height:20px;">
|
|
295
295
|
</a>
|
|
296
296
|
</p>
|
|
@@ -333,15 +333,15 @@ cvRouter.addResultFilter(filter);
|
|
|
333
333
|
<p>Read more on <a href="https://www.dynamsoft.com/capture-vision/docs/core/architecture/#capture-vision-router">Capture Vision Router</a>.</p>
|
|
334
334
|
</blockquote>
|
|
335
335
|
<h3 id="run-the-example">Run the example</h3>
|
|
336
|
-
<p>You can run the example deployed to <a href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.
|
|
336
|
+
<p>You can run the example deployed to <a href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.20&utm_source=npm">the Dynamsoft Demo Server</a> or test it with <a href="https://jsfiddle.net/DynamsoftTeam/csm2f9wb/">JSFiddle code editor</a>. </p>
|
|
337
337
|
<p>You will be asked to allow access to your camera, after which the video will be displayed on the page. After that, you can point the camera at a barcode to read it.</p>
|
|
338
338
|
<p>When a barcode is decoded, you will see the result text show up under the video and the barcode location will be highlighted in the video feed.</p>
|
|
339
339
|
<p>Alternatively, you can test locally by copying and pasting the code shown above into a local file (e.g. "hello-world.html") and opening it in your browser.</p>
|
|
340
340
|
<blockquote>
|
|
341
341
|
<p><em>Secure Contexts</em>:</p>
|
|
342
|
-
<p>If you open the web page as <code>http://</code
|
|
342
|
+
<p>If you open the web page as <code>http://</code>, our SDK may not work correctly because the <a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia">MediaDevices: getUserMedia()</a> and other methods only work in <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts">secure contexts</a> (HTTPS, <code>localhost</code>, <code>127.0.0.1</code>, <code>file://</code>), in some or all supporting browsers.</p>
|
|
343
343
|
<p>Regarding configuring https on your server, these guides for <a href="https://nginx.org/en/docs/http/configuring_https_servers.html">nginx</a> / <a href="https://aboutssl.org/how-to-create-a-self-signed-certificate-in-iis/">IIS</a> / <a href="https://dzone.com/articles/setting-ssl-tomcat-5-minutes">tomcat</a> / <a href="https://nodejs.org/docs/v0.4.1/api/tls.html">nodejs</a> might help.</p>
|
|
344
|
-
<p>If the test doesn't go as expected, you can <a href="https://www.dynamsoft.com/company/contact/?ver=11.
|
|
344
|
+
<p>If the test doesn't go as expected, you can <a href="https://www.dynamsoft.com/company/contact/?ver=11.6.20&utm_source=npm&product=dbr&package=js">contact us</a>.</p>
|
|
345
345
|
</blockquote>
|
|
346
346
|
<h2 id="preparing-the-sdk">Preparing the SDK</h2>
|
|
347
347
|
<h3 id="step-1-include-the-sdk">Step 1: Include the SDK</h3>
|
|
@@ -355,24 +355,24 @@ cvRouter.addResultFilter(filter);
|
|
|
355
355
|
<ul>
|
|
356
356
|
<li>jsDelivr</li>
|
|
357
357
|
</ul>
|
|
358
|
-
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.
|
|
358
|
+
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
359
359
|
</code></pre>
|
|
360
360
|
<ul>
|
|
361
361
|
<li>UNPKG</li>
|
|
362
362
|
</ul>
|
|
363
|
-
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://unpkg.com/dynamsoft-barcode-reader-bundle@11.
|
|
363
|
+
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://unpkg.com/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
364
364
|
</code></pre>
|
|
365
365
|
<!-- - In some rare cases (such as some restricted areas), you might not be able to access the CDN. If this happens, you can use the following files for the test.
|
|
366
|
-
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@11.
|
|
366
|
+
<pre><code class="hljs html language-html"> <span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
367
367
|
</code></pre>
|
|
368
368
|
|
|
369
369
|
However, please **DO NOT** use `download2.dynamsoft.com` resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself. -->
|
|
370
370
|
<ul>
|
|
371
371
|
<li>In frameworks like React, Vue and Angular, you may want to add the package as a dependency.</li>
|
|
372
372
|
</ul>
|
|
373
|
-
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@11.
|
|
373
|
+
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@11.6.2000 -E
|
|
374
374
|
<span class="hljs-comment"># or</span>
|
|
375
|
-
yarn add dynamsoft-barcode-reader-bundle@11.
|
|
375
|
+
yarn add dynamsoft-barcode-reader-bundle@11.6.2000 -E
|
|
376
376
|
</code></pre>
|
|
377
377
|
<p>NOTE that in frameworks, you need to <a href="#2-optional-specify-the-location-of-the-engine-files">specify the location of the engine files</a>.</p>
|
|
378
378
|
<div class="multi-panel-end"></div>
|
|
@@ -381,28 +381,28 @@ cvRouter.addResultFilter(filter);
|
|
|
381
381
|
<p>Besides using the public CDN, you can also download the SDK and host its files on your own server or a commercial CDN before including it in your application.</p>
|
|
382
382
|
<ul>
|
|
383
383
|
<li><p>From the website</p>
|
|
384
|
-
<p><a href="https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.
|
|
385
|
-
<p>The resources are located at path <code>dynamsoft-barcode-reader-js-{version-number}/dist/</code>.</p></li>
|
|
384
|
+
<p><a href="https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.6.20&utm_source=npm&product=dbr&package=js">Download Dynamsoft Barcode Reader JavaScript Package</a></p>
|
|
385
|
+
<p>The resources are located at the path <code>dynamsoft-barcode-reader-js-{version-number}/dist/</code>.</p></li>
|
|
386
386
|
<li><p>From npm</p></li>
|
|
387
387
|
</ul>
|
|
388
|
-
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@11.
|
|
388
|
+
<pre><code class="hljs sh language-sh"> npm i dynamsoft-barcode-reader-bundle@11.6.2000 -E
|
|
389
389
|
</code></pre>
|
|
390
390
|
<p>The resources are located at the path <code>node_modules/<pkg></code>, without <code>@<version></code>. You must copy "dynamsoft-xxx" packages elsewhere and add <code>@<version></code>. The <code><version></code> can be obtained from <code>package.json</code> of each package. Another thing to do is to <a href="#2-optional-specify-the-location-of-the-engine-files">specify the engineResourcePaths</a> so that the SDK can correctly locate the resources.</p>
|
|
391
391
|
<blockquote>
|
|
392
392
|
<p>Since "node<em>modules" is reserved for Node.js dependencies, and in our case the package is used only as static resources, we recommend either renaming the "node</em>modules" folder or moving the "dynamsoft-" packages to a dedicated folder for static resources in your project to facilitate self-hosting.</p>
|
|
393
393
|
</blockquote>
|
|
394
394
|
<p>You can typically include SDK like this:</p>
|
|
395
|
-
<pre><code class="hljs html language-html"><span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"path/to/dynamsoft-barcode-reader-bundle@11.
|
|
395
|
+
<pre><code class="hljs html language-html"><span class="hljs-tag"><<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"path/to/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"</span>></span><span class="hljs-tag"></<span class="hljs-name">script</span>></span>
|
|
396
396
|
</code></pre>
|
|
397
397
|
<div class="multi-panel-end"></div>
|
|
398
398
|
<div class="multi-panel-switching-end"></div>
|
|
399
399
|
<p><em>Note</em>:</p>
|
|
400
400
|
<ul>
|
|
401
|
-
<li>Certain legacy web application servers may lack support for the <code>application/wasm</code>
|
|
401
|
+
<li>Certain legacy web application servers may lack support for the <code>application/wasm</code> MIME type for .wasm files. To address this, you have two options:</li>
|
|
402
402
|
</ul>
|
|
403
403
|
<ol>
|
|
404
|
-
<li>Upgrade your web application server to one that supports the <code>application/wasm</code>
|
|
405
|
-
<li>Manually define the
|
|
404
|
+
<li>Upgrade your web application server to one that supports the <code>application/wasm</code> MIME type.</li>
|
|
405
|
+
<li>Manually define the MIME type on your server. You can refer to the guides for <a href="https://developer.mozilla.org/en-US/docs/Learn/Server-side/Apache_Configuration_htaccess#media_types_and_character_encodings">apache</a> / <a href="https://docs.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/mimemap">IIS</a> / <a href="https://www.nginx.com/resources/wiki/start/topics/examples/full/#mime-types">nginx</a>.</li>
|
|
406
406
|
</ol>
|
|
407
407
|
<ul>
|
|
408
408
|
<li>To work properly, the SDK requires a few engine files, which are relatively large and may take quite a few seconds to download. We recommend that you set a longer cache time for these engine files, to maximize the performance of your web application.</li>
|
|
@@ -416,21 +416,21 @@ cvRouter.addResultFilter(filter);
|
|
|
416
416
|
<p>To enable the SDK's functionality, you must provide a valid license. Utilize the API function initLicense to set your license key.</p>
|
|
417
417
|
<pre><code class="hljs javascript language-javascript">Dynamsoft.License.LicenseManager.initLicense(<span class="hljs-string">"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"</span>);
|
|
418
418
|
</code></pre>
|
|
419
|
-
<p>As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?ver=11.
|
|
419
|
+
<p>As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?ver=11.6.20&utm_source=npm&product=dbr&package=js" target="_blank">Request a Trial License</a> link.</p>
|
|
420
420
|
<blockquote>
|
|
421
421
|
<p>Upon registering a Dynamsoft account and obtaining the SDK package from the official website, Dynamsoft will automatically create a 30-day free trial license and embed the corresponding license key into all the provided SDK samples.</p>
|
|
422
422
|
</blockquote>
|
|
423
423
|
<h4 id="2-optional-specify-the-location-of-the-engine-files">2. [Optional] Specify the location of the "engine" files</h4>
|
|
424
|
-
<p>This step is
|
|
424
|
+
<p>This step is optional and is only necessary if you need to specify a custom location for the engine files, such as when hosting these resources yourself or when your project's build setup does not automatically resolve them from the default location.</p>
|
|
425
425
|
<p>The purpose is to tell the SDK where to find the engine files (*.worker.js, *.wasm.js and *.wasm, etc.).</p>
|
|
426
|
-
<pre><code class="hljs ts language-ts"><span class="hljs-comment">//
|
|
426
|
+
<pre><code class="hljs ts language-ts"><span class="hljs-comment">// In an ES Module</span>
|
|
427
427
|
<span class="hljs-keyword">import</span> { CoreModule } <span class="hljs-keyword">from</span> <span class="hljs-string">"dynamsoft-barcode-reader-bundle"</span>;
|
|
428
428
|
CoreModule.engineResourcePaths.rootDirectory = <span class="hljs-string">"https://cdn.jsdelivr.net/npm/"</span>;
|
|
429
429
|
</code></pre>
|
|
430
|
-
<pre><code class="hljs js language-js"><span class="hljs-comment">//
|
|
430
|
+
<pre><code class="hljs js language-js"><span class="hljs-comment">// Using the global namespace</span>
|
|
431
431
|
Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = <span class="hljs-string">"https://cdn.jsdelivr.net/npm/"</span>;
|
|
432
432
|
</code></pre>
|
|
433
|
-
<p>
|
|
433
|
+
<p>This code uses the jsDelivr CDN as an example, feel free to change it to your own location.</p>
|
|
434
434
|
<h2 id="using-the-sdk">Using the SDK</h2>
|
|
435
435
|
<h3 id="step-1-preload-the-module">Step 1: Preload the module</h3>
|
|
436
436
|
<p>The image processing logic is encapsulated within .wasm library files, and these files may require some time for downloading. To enhance the speed, we advise utilizing the following method to preload the libraries.</p>
|
|
@@ -658,7 +658,7 @@ settings.timeout = <span class="hljs-number">500</span>;
|
|
|
658
658
|
<h3 id="2-edit-the-preset-templates-directly">2. Edit the preset templates directly</h3>
|
|
659
659
|
<p>The preset templates have many more settings that can be customized to suit your use case best. If you <a href="https://www.dynamsoft.com/barcode-reader/downloads/1000003-confirmation/">download the SDK from Dynamsoft website</a>, you can find the templates under</p>
|
|
660
660
|
<ul>
|
|
661
|
-
<li>"/dynamsoft-barcode-reader-js-11.
|
|
661
|
+
<li>"/dynamsoft-barcode-reader-js-11.6.2000/dist/templates/"</li>
|
|
662
662
|
</ul>
|
|
663
663
|
<p>Upon completing the template editing, you can invoke the <code>initSettings</code> method and provide it with the template path as an argument.</p>
|
|
664
664
|
<pre><code class="hljs javascript language-javascript"><span class="hljs-keyword">await</span> cvRouter.initSettings(<span class="hljs-string">"PATH-TO-THE-FILE"</span>); <span class="hljs-comment">// E.g. "https://your-website/ReadSingleBarcode.json")</span>
|
|
@@ -732,7 +732,7 @@ uiElement.querySelector(<span class="hljs-string">'.dce-sel-resolution'
|
|
|
732
732
|
<h2 id="documentation">Documentation</h2>
|
|
733
733
|
<h3 id="api-reference">API Reference</h3>
|
|
734
734
|
<p>You can check out the detailed documentation about the APIs of the SDK at<br />
|
|
735
|
-
<a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.
|
|
735
|
+
<a href="https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2000">https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2000</a>.</p>
|
|
736
736
|
<!-- Compatibility is basically not an issue. Pls remove to another place
|
|
737
737
|
|
|
738
738
|
## System Requirements
|
|
@@ -744,7 +744,7 @@ DBR requires the following features to work:
|
|
|
744
744
|
When deploying your application / website for production, make sure to serve it via a secure HTTPS connection. This is required for two reasons
|
|
745
745
|
|
|
746
746
|
- Access to the camera video stream is only granted in a security context. Most browsers impose this restriction.
|
|
747
|
-
> Some browsers like Chrome may grant
|
|
747
|
+
> Some browsers like Chrome may grant access for `http://127.0.0.1` and `http://localhost` or even for pages opened directly from the local disk (`file:///...`). This can be helpful for temporary development and testing.
|
|
748
748
|
|
|
749
749
|
- Dynamsoft License requires a secure context to work.
|
|
750
750
|
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ The complete code of the "Hello World" example is shown below
|
|
|
34
34
|
<body>
|
|
35
35
|
<div id="camera-view-container" style="width: 100%; height: 60vh"></div>
|
|
36
36
|
<textarea id="results" style="width: 100%; min-height: 10vh; font-size: 3vmin; overflow: auto" disabled></textarea>
|
|
37
|
-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.
|
|
37
|
+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"></script>
|
|
38
38
|
<script>
|
|
39
39
|
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
|
|
40
40
|
Dynamsoft.Core.CoreModule.loadWasm();
|
|
@@ -70,7 +70,7 @@ The complete code of the "Hello World" example is shown below
|
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
<p align="center" style="text-align:center; white-space: normal; ">
|
|
73
|
-
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.
|
|
73
|
+
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.6.20/basics/hello-world.html" title="Code in Github" style="text-decoration:none;">
|
|
74
74
|
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg" alt="Code in Github" width="20" height="20" style="width:20px;height:20px;">
|
|
75
75
|
</a>
|
|
76
76
|
|
|
@@ -78,7 +78,7 @@ The complete code of the "Hello World" example is shown below
|
|
|
78
78
|
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/jsfiddle.svg" alt="Run via JSFiddle" width="20" height="20" style="width:20px;height:20px;" >
|
|
79
79
|
</a>
|
|
80
80
|
|
|
81
|
-
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.
|
|
81
|
+
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.20&utm_source=npm" title="Run in Dynamsoft" style="text-decoration:none;">
|
|
82
82
|
<img src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/svgs/solid/circle-play.svg" alt="Run in Dynamsoft" width="20" height="20" style="width:20px;height:20px;">
|
|
83
83
|
</a>
|
|
84
84
|
</p>
|
|
@@ -123,7 +123,7 @@ The complete code of the "Hello World" example is shown below
|
|
|
123
123
|
|
|
124
124
|
### Run the example
|
|
125
125
|
|
|
126
|
-
You can run the example deployed to [the Dynamsoft Demo Server](https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.
|
|
126
|
+
You can run the example deployed to [the Dynamsoft Demo Server](https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.6.20&utm_source=npm) or test it with [JSFiddle code editor](https://jsfiddle.net/DynamsoftTeam/csm2f9wb/).
|
|
127
127
|
|
|
128
128
|
You will be asked to allow access to your camera, after which the video will be displayed on the page. After that, you can point the camera at a barcode to read it.
|
|
129
129
|
|
|
@@ -133,11 +133,11 @@ Alternatively, you can test locally by copying and pasting the code shown above
|
|
|
133
133
|
|
|
134
134
|
> *Secure Contexts*:
|
|
135
135
|
>
|
|
136
|
-
> If you open the web page as `http
|
|
136
|
+
> If you open the web page as `http://`, our SDK may not work correctly because the [MediaDevices: getUserMedia()](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) and other methods only work in [secure contexts](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts) (HTTPS, `localhost`, `127.0.0.1`, `file://`), in some or all supporting browsers.
|
|
137
137
|
>
|
|
138
138
|
> Regarding configuring https on your server, these guides for [nginx](https://nginx.org/en/docs/http/configuring_https_servers.html) / [IIS](https://aboutssl.org/how-to-create-a-self-signed-certificate-in-iis/) / [tomcat](https://dzone.com/articles/setting-ssl-tomcat-5-minutes) / [nodejs](https://nodejs.org/docs/v0.4.1/api/tls.html) might help.
|
|
139
139
|
>
|
|
140
|
-
> If the test doesn't go as expected, you can [contact us](https://www.dynamsoft.com/company/contact/?ver=11.
|
|
140
|
+
> If the test doesn't go as expected, you can [contact us](https://www.dynamsoft.com/company/contact/?ver=11.6.20&utm_source=npm&product=dbr&package=js).
|
|
141
141
|
|
|
142
142
|
## Preparing the SDK
|
|
143
143
|
|
|
@@ -156,19 +156,19 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
|
|
|
156
156
|
- jsDelivr
|
|
157
157
|
|
|
158
158
|
```html
|
|
159
|
-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.
|
|
159
|
+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"></script>
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
- UNPKG
|
|
163
163
|
|
|
164
164
|
```html
|
|
165
|
-
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@11.
|
|
165
|
+
<script src="https://unpkg.com/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"></script>
|
|
166
166
|
```
|
|
167
167
|
|
|
168
168
|
<!-- - In some rare cases (such as some restricted areas), you might not be able to access the CDN. If this happens, you can use the following files for the test.
|
|
169
169
|
|
|
170
170
|
```html
|
|
171
|
-
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@11.
|
|
171
|
+
<script src="https://download2.dynamsoft.com/packages/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"></script>
|
|
172
172
|
```
|
|
173
173
|
|
|
174
174
|
However, please **DO NOT** use `download2.dynamsoft.com` resources in a production application as they are for temporary testing purposes only. Instead, you can try hosting the SDK yourself. -->
|
|
@@ -176,9 +176,9 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
|
|
|
176
176
|
- In frameworks like React, Vue and Angular, you may want to add the package as a dependency.
|
|
177
177
|
|
|
178
178
|
```sh
|
|
179
|
-
npm i dynamsoft-barcode-reader-bundle@11.
|
|
179
|
+
npm i dynamsoft-barcode-reader-bundle@11.6.2000 -E
|
|
180
180
|
# or
|
|
181
|
-
yarn add dynamsoft-barcode-reader-bundle@11.
|
|
181
|
+
yarn add dynamsoft-barcode-reader-bundle@11.6.2000 -E
|
|
182
182
|
```
|
|
183
183
|
|
|
184
184
|
NOTE that in frameworks, you need to [specify the location of the engine files](#2-optional-specify-the-location-of-the-engine-files).
|
|
@@ -191,14 +191,14 @@ Besides using the public CDN, you can also download the SDK and host its files o
|
|
|
191
191
|
|
|
192
192
|
- From the website
|
|
193
193
|
|
|
194
|
-
[Download Dynamsoft Barcode Reader JavaScript Package](https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.
|
|
194
|
+
[Download Dynamsoft Barcode Reader JavaScript Package](https://www.dynamsoft.com/barcode-reader/downloads/?ver=11.6.20&utm_source=npm&product=dbr&package=js)
|
|
195
195
|
|
|
196
|
-
The resources are located at path `dynamsoft-barcode-reader-js-{version-number}/dist/`.
|
|
196
|
+
The resources are located at the path `dynamsoft-barcode-reader-js-{version-number}/dist/`.
|
|
197
197
|
|
|
198
198
|
- From npm
|
|
199
199
|
|
|
200
200
|
```sh
|
|
201
|
-
npm i dynamsoft-barcode-reader-bundle@11.
|
|
201
|
+
npm i dynamsoft-barcode-reader-bundle@11.6.2000 -E
|
|
202
202
|
```
|
|
203
203
|
|
|
204
204
|
The resources are located at the path `node_modules/<pkg>`, without `@<version>`. You must copy "dynamsoft-xxx" packages elsewhere and add `@<version>`. The `<version>` can be obtained from `package.json` of each package. Another thing to do is to [specify the engineResourcePaths](#2-optional-specify-the-location-of-the-engine-files) so that the SDK can correctly locate the resources.
|
|
@@ -207,7 +207,7 @@ Besides using the public CDN, you can also download the SDK and host its files o
|
|
|
207
207
|
You can typically include SDK like this:
|
|
208
208
|
|
|
209
209
|
```html
|
|
210
|
-
<script src="path/to/dynamsoft-barcode-reader-bundle@11.
|
|
210
|
+
<script src="path/to/dynamsoft-barcode-reader-bundle@11.6.2000/dist/dbr.bundle.js"></script>
|
|
211
211
|
```
|
|
212
212
|
<div class="multi-panel-end"></div>
|
|
213
213
|
|
|
@@ -215,9 +215,9 @@ You can typically include SDK like this:
|
|
|
215
215
|
|
|
216
216
|
*Note*:
|
|
217
217
|
|
|
218
|
-
* Certain legacy web application servers may lack support for the `application/wasm`
|
|
219
|
-
1. Upgrade your web application server to one that supports the `application/wasm`
|
|
220
|
-
2. Manually define the
|
|
218
|
+
* Certain legacy web application servers may lack support for the `application/wasm` MIME type for .wasm files. To address this, you have two options:
|
|
219
|
+
1. Upgrade your web application server to one that supports the `application/wasm` MIME type.
|
|
220
|
+
2. Manually define the MIME type on your server. You can refer to the guides for [apache](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Apache_Configuration_htaccess#media_types_and_character_encodings) / [IIS](https://docs.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/mimemap) / [nginx](https://www.nginx.com/resources/wiki/start/topics/examples/full/#mime-types).
|
|
221
221
|
|
|
222
222
|
* To work properly, the SDK requires a few engine files, which are relatively large and may take quite a few seconds to download. We recommend that you set a longer cache time for these engine files, to maximize the performance of your web application.
|
|
223
223
|
|
|
@@ -239,26 +239,26 @@ To enable the SDK's functionality, you must provide a valid license. Utilize the
|
|
|
239
239
|
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9");
|
|
240
240
|
```
|
|
241
241
|
|
|
242
|
-
As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?ver=11.
|
|
242
|
+
As previously stated, the key "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" serves as a test license valid for 24 hours, applicable to any newly authorized browser. To test the SDK further, you can request a 30-day free trial license via the <a href="https://www.dynamsoft.com/customer/license/trialLicense?ver=11.6.20&utm_source=npm&product=dbr&package=js" target="_blank">Request a Trial License</a> link.
|
|
243
243
|
|
|
244
244
|
> Upon registering a Dynamsoft account and obtaining the SDK package from the official website, Dynamsoft will automatically create a 30-day free trial license and embed the corresponding license key into all the provided SDK samples.
|
|
245
245
|
|
|
246
246
|
#### 2. [Optional] Specify the location of the "engine" files
|
|
247
247
|
|
|
248
|
-
This step is
|
|
248
|
+
This step is optional and is only necessary if you need to specify a custom location for the engine files, such as when hosting these resources yourself or when your project's build setup does not automatically resolve them from the default location.
|
|
249
249
|
|
|
250
250
|
The purpose is to tell the SDK where to find the engine files (\*.worker.js, \*.wasm.js and \*.wasm, etc.).
|
|
251
251
|
|
|
252
252
|
```ts
|
|
253
|
-
//
|
|
253
|
+
// In an ES Module
|
|
254
254
|
import { CoreModule } from "dynamsoft-barcode-reader-bundle";
|
|
255
255
|
CoreModule.engineResourcePaths.rootDirectory = "https://cdn.jsdelivr.net/npm/";
|
|
256
256
|
```
|
|
257
257
|
```js
|
|
258
|
-
//
|
|
258
|
+
// Using the global namespace
|
|
259
259
|
Dynamsoft.Core.CoreModule.engineResourcePaths.rootDirectory = "https://cdn.jsdelivr.net/npm/";
|
|
260
260
|
```
|
|
261
|
-
|
|
261
|
+
This code uses the jsDelivr CDN as an example, feel free to change it to your own location.
|
|
262
262
|
|
|
263
263
|
## Using the SDK
|
|
264
264
|
|
|
@@ -526,7 +526,7 @@ await cvRouter.startCapturing("ReadSingleBarcode");
|
|
|
526
526
|
|
|
527
527
|
The preset templates have many more settings that can be customized to suit your use case best. If you [download the SDK from Dynamsoft website](https://www.dynamsoft.com/barcode-reader/downloads/1000003-confirmation/), you can find the templates under
|
|
528
528
|
|
|
529
|
-
* "/dynamsoft-barcode-reader-js-11.
|
|
529
|
+
* "/dynamsoft-barcode-reader-js-11.6.2000/dist/templates/"
|
|
530
530
|
|
|
531
531
|
Upon completing the template editing, you can invoke the `initSettings` method and provide it with the template path as an argument.
|
|
532
532
|
|
|
@@ -628,7 +628,7 @@ The UI is part of the auxiliary SDK "Dynamsoft Camera Enhancer", read more on ho
|
|
|
628
628
|
### API Reference
|
|
629
629
|
|
|
630
630
|
You can check out the detailed documentation about the APIs of the SDK at
|
|
631
|
-
[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.
|
|
631
|
+
[https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2000](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/?ver=11.6.2000).
|
|
632
632
|
|
|
633
633
|
<!-- Compatibility is basically not an issue. Pls remove to another place
|
|
634
634
|
|
|
@@ -641,7 +641,7 @@ DBR requires the following features to work:
|
|
|
641
641
|
When deploying your application / website for production, make sure to serve it via a secure HTTPS connection. This is required for two reasons
|
|
642
642
|
|
|
643
643
|
- Access to the camera video stream is only granted in a security context. Most browsers impose this restriction.
|
|
644
|
-
> Some browsers like Chrome may grant
|
|
644
|
+
> Some browsers like Chrome may grant access for `http://127.0.0.1` and `http://localhost` or even for pages opened directly from the local disk (`file:///...`). This can be helpful for temporary development and testing.
|
|
645
645
|
|
|
646
646
|
- Dynamsoft License requires a secure context to work.
|
|
647
647
|
|