Skip to content

Commit cc5f55b

Browse files
committed
adds license alert
1 parent 7bd2014 commit cc5f55b

26 files changed

+283
-839
lines changed

1.hello-world/1.minimum-code.html

Lines changed: 12 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,70 +5,33 @@
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<title>Dynamsoft Barcode Reader Sample - Hello World (Decoding via Camera)</title>
8-
<script src="https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20210429140551.0/dist/dbr.js"></script>
8+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.2.3/dist/dbr.js"></script>
99
</head>
1010

11-
<!--
12-
This sample demonstrates the minimum necessary JavaScript code to get the BarcodeScanner (video) up and running.
13-
The BarcodeScanner object is initialized with its default UI once the user clicks the 'Read Barcode via Camera' button.
14-
Any unique barcode results that are found are then displayed in an alert box to the user.
15-
-->
16-
1711
<body>
1812
<h2>Minimum Code to Read Barcodes</h2>
1913
<button id='readBarcode'>Read Barcode via Camera</button>
2014
<script>
21-
/**
15+
/** LICENSE ALERT - README
2216
* The library requires a license to work, the APIs organizationID and handshakeCode specify how to acquire a license.
23-
*
24-
* If nothing is specified, a 7-day (public) trial license will be used by default.
25-
*
17+
* If nothing is specified, a 7-day (public) trial license will be used by default which is the case in this sample.
2618
* Note that network connection is required for this license acquisition to work.
2719
*/
2820

29-
/**
30-
* All licenses belong to a specific organization, therefore, you can acquire your licenses
31-
* by first specifying the ID of your organization.
32-
*
33-
* You can get your own organization with licenses by
34-
* - Requesting a private trial/evaluation license
35-
* - Or, purchasing a commercial/deployment license
36-
*
37-
* Once you get your own organization, uncomment the following line of code and put your ID there.
38-
*/
39-
40-
// Dynamsoft.DBR.BarcodeReader.organizationID = "123***7";
41-
42-
/**
43-
* Licenses of an organization are grouped by handshake codes. After specifying the organization,
44-
* you can further specify the handshake code as a more precise way to use only the licenses configured
45-
* to that handshake code. If no handshake code is specified, the default handshake code is used.
46-
*/
47-
48-
// Dynamsoft.DBR.BarcodeReader.handshakeCode = "A-Specific-HandshakeCode";
21+
/* When using your own license, please uncomment the following lines and fill in your own information. */
22+
/* For more information, please refer to https://www.dynamsoft.com/license-tracking/docs/about/licensefaq.html?ver=latest#how-to-use-a-trackable-license. */
4923

50-
/**
51-
* To protect your licenses, you can specify a session password.
52-
*
53-
* This password corresponds to the handshake code specified by the above API "handshakeCode"
54-
* or the default one if no handshakeCode is specified.
55-
*
56-
* Read more about [How can I protect my license?](https://www.dynamsoft.com/license-tracking/docs/about/licensefaq.html?ver=latest#how-can-i-protect-my-license)
57-
*/
24+
// Dynamsoft.DBR.BarcodeReader.organizationID = "YOUR-ORGANIZATION-ID";
25+
// Dynamsoft.DBR.BarcodeReader.handshakeCode = "A-SPECIFIC-HANDSHAKECODE";
26+
// Dynamsoft.DBR.BarcodeReader.sessionPassword = "PASSWORD-TO-PROTECT-YOUR-LICENSE"; // Important field to protect your license.
27+
// Dynamsoft.DBR.BarcodeReader.licenseServer = ["YOUR-OWN-MAIN-LTS", "YOUR-OWN-STANDBY-LTS"]; // Ignore this line if you are using Dynamsoft-hosting LTS
5828

59-
// Dynamsoft.DBR.BarcodeReader.sessionPassword = "Your-Session-Password";
29+
/* The API "productKeys" is an alternative way to license the library, the major difference is that it does not require a network. Contact support@dynamsoft.com for more information. */
6030

61-
/**
62-
* The API "productKeys" is an alternative way to license the library, the major difference is that it does not require a network.
63-
*
64-
* Contact support@dynamsoft.com for more information.
65-
*/
66-
67-
// Dynamsoft.DBR.BarcodeReader.productKeys = "Your-Product-Keys";
31+
// Dynamsoft.DBR.BarcodeReader.productKeys = "YOUR-PRODUCT-KEY";
6832

33+
/** LICENSE ALERT - THE END */
6934

70-
Dynamsoft.DBR.BarcodeReader.organizationID = "100448235";
71-
7235
let scanner = null;
7336
document.getElementById('readBarcode').onclick = async function () {
7437
try {

1.hello-world/2.read-an-image.html

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.2.3/dist/dbr.js"></script>
99
</head>
1010

11-
<!--
12-
This sample demonstrates how to use the library to decode barcodes using images that are stored locally,
13-
whether on mobile or desktop. If you are looking to read barcodes directly from a video stream instead,
14-
please refer to the "Video Decoding" sample instead.
15-
-->
16-
1711
<body>
1812
<h2>Read An Existing Image</h2>
1913
<input id="ipt-file" type="file" style="margin-bottom: 2vh;" accept="image/png,image/jpeg,image/bmp,image/gif">
@@ -29,18 +23,32 @@ <h2>Read An Existing Image</h2>
2923
<div id="results"></div>
3024
</div>
3125
<script>
26+
/** LICENSE ALERT - README
27+
* The library requires a license to work, the APIs organizationID and handshakeCode specify how to acquire a license.
28+
* If nothing is specified, a 7-day (public) trial license will be used by default which is the case in this sample.
29+
* Note that network connection is required for this license acquisition to work.
30+
*/
31+
32+
/* When using your own license, please uncomment the following lines and fill in your own information. */
33+
/* For more information, please refer to https://www.dynamsoft.com/license-tracking/docs/about/licensefaq.html?ver=latest#how-to-use-a-trackable-license. */
34+
35+
// Dynamsoft.DBR.BarcodeReader.organizationID = "YOUR-ORGANIZATION-ID";
36+
// Dynamsoft.DBR.BarcodeReader.handshakeCode = "A-SPECIFIC-HANDSHAKECODE";
37+
// Dynamsoft.DBR.BarcodeReader.sessionPassword = "PASSWORD-TO-PROTECT-YOUR-LICENSE"; // Important field to protect your license.
38+
// Dynamsoft.DBR.BarcodeReader.licenseServer = ["YOUR-OWN-MAIN-LTS", "YOUR-OWN-STANDBY-LTS"]; // Ignore this line if you are using Dynamsoft-hosting LTS
39+
40+
/* The API "productKeys" is an alternative way to license the library, the major difference is that it does not require a network. Contact support@dynamsoft.com for more information. */
41+
42+
// Dynamsoft.DBR.BarcodeReader.productKeys = "YOUR-PRODUCT-KEY";
43+
44+
/** LICENSE ALERT - THE END */
45+
3246
// reader for decoding picture
3347
let reader = null;
3448
// decode input picture
3549
window.onload = async function () {
3650
// Create a BarcodeReader instance on page load to speed things up.
3751
try {
38-
/**
39-
* Please note that the organizationID '200001' corresponds to Dynamsoft's public trial license which is reserved for public samples.
40-
* When hosting the sample in your own environment, please obtain a private trial license or a full license by contacting the
41-
* Dynamsoft Support Team via support@dynamsoft.com
42-
*/
43-
Dynamsoft.DBR.BarcodeReader.organizationID = "100448235";
4452
await Dynamsoft.DBR.BarcodeReader.loadWasm();
4553
} catch (ex) {
4654
alert(ex.message);
Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
11
import DBR from "dynamsoft-javascript-barcode";
2-
DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.2.3/dist/";
3-
/**
4-
* Please note that the organizationID '200001' corresponds to Dynamsoft's public trial license which is reserved for public samples.
5-
* When hosting the sample in your own environment, please obtain a private trial license or a full license by contacting the
6-
* Dynamsoft Support Team via support@dynamsoft.com
2+
3+
/** LICENSE ALERT - README
4+
* The library requires a license to work, the APIs organizationID and handshakeCode specify how to acquire a license.
5+
* If nothing is specified, a 7-day (public) trial license will be used by default which is the case in this sample.
6+
* Note that network connection is required for this license acquisition to work.
77
*/
8-
DBR.BarcodeReader.organizationID = "100448235";
8+
9+
/* When using your own license, please uncomment the following lines and fill in your own information. */
10+
/* For more information, please refer to https://www.dynamsoft.com/license-tracking/docs/about/licensefaq.html?ver=latest#how-to-use-a-trackable-license. */
11+
12+
// DBR..BarcodeReader.organizationID = "YOUR-ORGANIZATION-ID";
13+
// DBR..BarcodeReader.handshakeCode = "A-SPECIFIC-HANDSHAKECODE";
14+
// DBR..BarcodeReader.sessionPassword = "PASSWORD-TO-PROTECT-YOUR-LICENSE"; // Important field to protect your license.
15+
// DBR..BarcodeReader.licenseServer = ["YOUR-OWN-MAIN-LTS", "YOUR-OWN-STANDBY-LTS"]; // Ignore this line if you are using Dynamsoft-hosting LTS
16+
17+
/* The API "productKeys" is an alternative way to license the library, the major difference is that it does not require a network. Contact support@dynamsoft.com for more information. */
18+
19+
// DBR..BarcodeReader.productKeys = "YOUR-PRODUCT-KEY";
20+
21+
/** LICENSE ALERT - THE END */
22+
23+
DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.2.3/dist/";
24+
925
// DBR.BarcodeReader._bUseFullFeature = true; // Control of loading min wasm or full wasm.
26+
1027
export default DBR;

1.hello-world/3.read-video-angular/src/index.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@
88
<link rel="icon" type="image/x-icon" href="favicon.ico">
99
</head>
1010

11-
<!--
12-
This sample demonstrates how to use the library in an Angular Application to decode video stream from a USB-connected or built-in camera,
13-
whether on mobile or desktop.
14-
15-
Please note that the organizationID '200001' corresponds to Dynamsoft's public trial license which is reserved for public samples.
16-
When hosting the sample in your own environment, please obtain a private trial license or a full license by contacting the
17-
Dynamsoft Support Team via support@dynamsoft.com
18-
-->
19-
2011
<body>
2112
<app-root></app-root>
2213
</body>

1.hello-world/4.read-video-react/public/index.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@
2525
<title>React App</title>
2626
</head>
2727

28-
<!--
29-
This sample demonstrates how to use the library in a React Application to decode video stream from a USB-connected or built-in camera,
30-
whether on mobile or desktop.
31-
32-
Please note that the organizationID '200001' corresponds to Dynamsoft's public trial license which is reserved for public samples.
33-
When hosting the sample in your own environment, please obtain a private trial license or a full license by contacting the
34-
Dynamsoft Support Team via support@dynamsoft.com
35-
-->
36-
3728
<body>
3829
<noscript>You need to enable JavaScript to run this app.</noscript>
3930
<div id="root"></div>
Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
11
import DBR from "dynamsoft-javascript-barcode";
2+
3+
/** LICENSE ALERT - README
4+
* The library requires a license to work, the APIs organizationID and handshakeCode specify how to acquire a license.
5+
* If nothing is specified, a 7-day (public) trial license will be used by default which is the case in this sample.
6+
* Note that network connection is required for this license acquisition to work.
7+
*/
8+
9+
/* When using your own license, please uncomment the following lines and fill in your own information. */
10+
/* For more information, please refer to https://www.dynamsoft.com/license-tracking/docs/about/licensefaq.html?ver=latest#how-to-use-a-trackable-license. */
11+
12+
// DBR..BarcodeReader.organizationID = "YOUR-ORGANIZATION-ID";
13+
// DBR..BarcodeReader.handshakeCode = "A-SPECIFIC-HANDSHAKECODE";
14+
// DBR..BarcodeReader.sessionPassword = "PASSWORD-TO-PROTECT-YOUR-LICENSE"; // Important field to protect your license.
15+
// DBR..BarcodeReader.licenseServer = ["YOUR-OWN-MAIN-LTS", "YOUR-OWN-STANDBY-LTS"]; // Ignore this line if you are using Dynamsoft-hosting LTS
16+
17+
/* The API "productKeys" is an alternative way to license the library, the major difference is that it does not require a network. Contact support@dynamsoft.com for more information. */
18+
19+
// DBR..BarcodeReader.productKeys = "YOUR-PRODUCT-KEY";
20+
21+
/** LICENSE ALERT - THE END */
22+
223
DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.2.3/dist/";
3-
// Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license
4-
DBR.BarcodeReader.organizationID = "100448235";
5-
// DBR.BarcodeReader.productKeys = "t0077xQAAAEOf0RjyWar4Q48NrAu7iX4j+Ivl3iqpsR2Mf3W9gf/HMgalcntdpSMel3xw/Mze/z8dpY0eCdkvUxN6+brx+xrzZh4+AWkFKn4=";
24+
625
// DBR.BarcodeReader._bUseFullFeature = true; // Control of loading min wasm or full wasm.
26+
727
export default DBR;

1.hello-world/5.read-video-vue/public/index.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@
1111
</title>
1212
</head>
1313

14-
<!--
15-
This sample demonstrates how to use the library in a Vue Application to decode video stream from a USB-connected or built-in camera,
16-
whether on mobile or desktop.
17-
18-
Please note that the organizationID '200001' corresponds to Dynamsoft's public trial license which is reserved for public samples.
19-
When hosting the sample in your own environment, please obtain a private trial license or a full license by contacting the
20-
Dynamsoft Support Team via support@dynamsoft.com
21-
-->
22-
2314
<body>
2415
<noscript>
2516
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
import DBR from "dynamsoft-javascript-barcode";
2+
3+
/** LICENSE ALERT - README
4+
* The library requires a license to work, the APIs organizationID and handshakeCode specify how to acquire a license.
5+
* If nothing is specified, a 7-day (public) trial license will be used by default which is the case in this sample.
6+
* Note that network connection is required for this license acquisition to work.
7+
*/
8+
9+
/* When using your own license, please uncomment the following lines and fill in your own information. */
10+
/* For more information, please refer to https://www.dynamsoft.com/license-tracking/docs/about/licensefaq.html?ver=latest#how-to-use-a-trackable-license. */
11+
12+
// DBR..BarcodeReader.organizationID = "YOUR-ORGANIZATION-ID";
13+
// DBR..BarcodeReader.handshakeCode = "A-SPECIFIC-HANDSHAKECODE";
14+
// DBR..BarcodeReader.sessionPassword = "PASSWORD-TO-PROTECT-YOUR-LICENSE"; // Important field to protect your license.
15+
// DBR..BarcodeReader.licenseServer = ["YOUR-OWN-MAIN-LTS", "YOUR-OWN-STANDBY-LTS"]; // Ignore this line if you are using Dynamsoft-hosting LTS
16+
17+
/* The API "productKeys" is an alternative way to license the library, the major difference is that it does not require a network. Contact support@dynamsoft.com for more information. */
18+
19+
// DBR..BarcodeReader.productKeys = "YOUR-PRODUCT-KEY";
20+
21+
/** LICENSE ALERT - THE END */
22+
223
DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.2.3/dist/";
3-
// Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license
4-
DBR.BarcodeReader.organizationID = "100448235";
24+
525
// DBR.BarcodeReader._bUseFullFeature = true; // Control of loading min wasm or full wasm.
26+
627
export default DBR;

0 commit comments

Comments
 (0)