Skip to content

Commit

Permalink
Merge pull request #14 from BlinkID/jenkins/stable-build-latest
Browse files Browse the repository at this point in the history
Port of automatic build by Jenkins
  • Loading branch information
vjekoart authored Jul 8, 2022
2 parents 06cb8a3 + 2fafbf0 commit c18d0e0
Show file tree
Hide file tree
Showing 93 changed files with 3,292 additions and 2,735 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Release notes

## 5.17.0

### Changes to BlinkID ImageCapture Recognizer

* We've fixed issues with scanning Argentina AlienID, where there were confusions with the regular ID. `ClassInfo` now correctly returns which ID type is present based on the barcode data.

### Platform-related SDK changes

* **[BREAKING CHANGE]** Due to security reasons, we've added a mechanism to load worker script from an external location.
* New property `WasmSDKLoadSettings.workerLocation` was added for this purpose and represents a path to the external worker script file.
* If omitted, SDK will look for the worker script in the `resources` directory.

### UI Improvements

* We've added property `recognitionPauseTimeout` to the UI component that defines scanning pause after the first side of a document has been scanned.
* The purpose of this property is to give the end-user enough time to flip the document before scanning is resumed.
* Default value is `3800` and represents time in milliseconds.
* We've exposed property `cameraExperienceStateDurations` on the UI component that can be used to change the default durations of UI animations.

## 5.16.0

We've added new documents to our list of supported documents:
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ BlinkID ImageCapture will work in any browser that supports [WebAssembly](https:

Using BlinkID ImageCapture in your web app requires a valid license key.

You can obtain a free trial license key by registering to [Microblink dashboard](https://microblink.com/login). After registering, you will be able to generate a license key for your web app.
A valid license key is required to initialize scanning. You can request a free trial license key, after you register, at [Microblink Developer Hub](https://account.microblink.com/signin).

Make sure you enter a [fully qualified domain name](https://en.wikipedia.org/wiki/Fully_qualified_domain_name) of your web app when filling out the form — the license key will be bound to it. Also, if you plan to serve your web app from different domains, you'll need a license key for each one.

Expand Down Expand Up @@ -349,11 +349,23 @@ loadSettings.allowHelloMessage = true;
*/
loadSettings.engineLocation = "";
/**
* The absolute location of the Web Worker script file that loads the WebAssembly module.
*
* Important: the worker script must be served via HTTPS and must be of the same origin as the initiator.
* See https://github.com/w3c/ServiceWorker/issues/940 (same applies for Web Workers).
*
* Important: SDK, worker script and WebAssembly resources must be from the same version of the package.
*
* The default value is an empty string, i.e. "", and in that case, the worker script is loaded from the default location in resources folder.
*/
loadSettings.workerLocation = "";
/**
* Type of the WASM that will be loaded. By default, if not set, the SDK will automatically determine the best WASM
* to load.
*/
wasmType: WasmType | null = null;
loadSettings.wasmType: WasmType | null = null;
/**
* Optional callback function that will report the SDK loading progress.
Expand Down
437 changes: 215 additions & 222 deletions client-library/package-lock.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions examples/blinkid-camera/javascript/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ function main()
}

// 1. It's possible to obtain a free trial license key on microblink.com
let licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmKoUbwQltserSykjeSEsSCVfWKqfxFvkLjL2HWEI4HOXr5m421vGohboFhYUw++ojPvtmcQFWJJRrk9Q/Wc7snrjjc/u/EJ3VrOYN9yv4dunEAoOlkbG9hsNBadI+i+Y1jfQn1qToIW+7nT0DZ4dHF9tCPFn7BsMNg+1irDkPFJVT6OL39v/hDzuvcUQ8qj5FRE8gsaRB2yI=";
let licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmLi04YqlzvLD9rIz4izOx4fnPF6gY0fQhFRXnhp4JFAoaEQ/u8BKDnAQ9ugvgYNY3pptTBU65iTZyXpRuXW9Etjp2JqNMs0zFk5sBcw2za1l0Y6aJlt+W/YqkAZqFMvxHsAxP/3w1ZB20RyiCE1t6AxbbhKnQ5RYQwp6j4qs8Kz5/MpDNl3VqrhG8THth+Rl8xv2d3HmNUyQIRQ==";

if (window.location.hostname === "blinkid.github.io")
{
licenseKey = "sRwAAAYRYmxpbmtpZC5naXRodWIuaW+qBF9heYYlTvZbvpaFiKNHg4G2awtEGd+imfxvW62DEqVTolHQnorEXKJzgyBWktsepe0hf/PatSjz1NPIGl5NpcBB3/+c6AY9qDvqBXueL4H8keVx9zfYCTMMBSYAXnlrkyHCAfenDxl2mrg7AGH85Yf7QCDiknrUdnI5DigEBgf2kw35LTeqD9Otf+UDso02jhavbG/gJnkDyddU43r1MJpAiQ==";
licenseKey = "sRwAAAYRYmxpbmtpZC5naXRodWIuaW+qBF9heYYlTvZbvpaBIIDkJA/XQU6HolX+MNqSLG1m/fFMC1qqUZmBFli7qQfYreJbTgbHVh6giiJyVG43gHYPLatYM8ObP/ebmC3OYDUMf8bT/jFWQ6bNQ5bmJN3CdrdoZd/pJebqI+ZJDMDSL4Hs9KKOSseAkLQmpuxG6yQUhYaxLJvE02xXx0gr/tNFnH0bp2iaEHNlYhHlwFP7XVfZSKY3TFzu";
}

// 2. Create instance of SDK load settings with your license key
Expand All @@ -57,6 +57,9 @@ function main()
// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = "https://blinkid.github.io/blinkid-imagecapture-in-browser/resources";

// Set absolute location of the worker file
loadSettings.workerLocation = "https://blinkid.github.io/blinkid-imagecapture-in-browser/resources/BlinkIDImageCaptureWasmSDK.worker.min.js";

// 3. Load SDK
BlinkIDImageCaptureSDK.loadWasmModule(loadSettings).then(

Expand Down
4 changes: 2 additions & 2 deletions examples/blinkid-camera/javascript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1 id="msg">Loading...</h1>
</body>

<!-- Keep in mind that Unpkg CDN is used for demonstration, it's not intended to be used in production! -->
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.16.0/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.16.0/dist/blinkid-imagecapture-sdk.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.17.0/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.17.0/dist/blinkid-imagecapture-sdk.js"></script>
<script src="app.js"></script>
</html>
2 changes: 1 addition & 1 deletion examples/blinkid-camera/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"typescript": "^3.9.5"
},
"dependencies": {
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.16.0"
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.17.0"
}
}
5 changes: 4 additions & 1 deletion examples/blinkid-camera/typescript/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function main() {
}

// 1. It's possible to obtain a free trial license key on microblink.com
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmKoUbwQltserSykjeSEsSCVfWKqfxFvkLjL2HWEI4HOXr5m421vGohboFhYUw++ojPvtmcQFWJJRrk9Q/Wc7snrjjc/u/EJ3VrOYN9yv4dunEAoOlkbG9hsNBadI+i+Y1jfQn1qToIW+7nT0DZ4dHF9tCPFn7BsMNg+1irDkPFJVT6OL39v/hDzuvcUQ8qj5FRE8gsaRB2yI=";
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmLi04YqlzvLD9rIz4izOx4fnPF6gY0fQhFRXnhp4JFAoaEQ/u8BKDnAQ9ugvgYNY3pptTBU65iTZyXpRuXW9Etjp2JqNMs0zFk5sBcw2za1l0Y6aJlt+W/YqkAZqFMvxHsAxP/3w1ZB20RyiCE1t6AxbbhKnQ5RYQwp6j4qs8Kz5/MpDNl3VqrhG8THth+Rl8xv2d3HmNUyQIRQ==";

// 2. Create instance of SDK load settings with your license key
const loadSettings = new BlinkIDImageCaptureSDK.WasmSDKLoadSettings(licenseKey);
Expand All @@ -52,6 +52,9 @@ function main() {
// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = window.location.origin;

// Set absolute location of the worker file
loadSettings.workerLocation = window.location.origin + "/BlinkIDImageCaptureWasmSDK.worker.min.js";

// 3. Load SDK
BlinkIDImageCaptureSDK.loadWasmModule(loadSettings).then((sdk: BlinkIDImageCaptureSDK.WasmSDK) => {
document.getElementById("screen-initial")?.classList.add("hidden");
Expand Down
7 changes: 5 additions & 2 deletions examples/blinkid-file/javascript/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ function main()
}

// 1. It's possible to obtain a free trial license key on microblink.com
let licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmKoUbwQltserSykjeSEsSCVfWKqfxFvkLjL2HWEI4HOXr5m421vGohboFhYUw++ojPvtmcQFWJJRrk9Q/Wc7snrjjc/u/EJ3VrOYN9yv4dunEAoOlkbG9hsNBadI+i+Y1jfQn1qToIW+7nT0DZ4dHF9tCPFn7BsMNg+1irDkPFJVT6OL39v/hDzuvcUQ8qj5FRE8gsaRB2yI=";
let licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmLi04YqlzvLD9rIz4izOx4fnPF6gY0fQhFRXnhp4JFAoaEQ/u8BKDnAQ9ugvgYNY3pptTBU65iTZyXpRuXW9Etjp2JqNMs0zFk5sBcw2za1l0Y6aJlt+W/YqkAZqFMvxHsAxP/3w1ZB20RyiCE1t6AxbbhKnQ5RYQwp6j4qs8Kz5/MpDNl3VqrhG8THth+Rl8xv2d3HmNUyQIRQ==";

if (window.location.hostname === "blinkid.github.io")
{
licenseKey = "sRwAAAYRYmxpbmtpZC5naXRodWIuaW+qBF9heYYlTvZbvpaFiKNHg4G2awtEGd+imfxvW62DEqVTolHQnorEXKJzgyBWktsepe0hf/PatSjz1NPIGl5NpcBB3/+c6AY9qDvqBXueL4H8keVx9zfYCTMMBSYAXnlrkyHCAfenDxl2mrg7AGH85Yf7QCDiknrUdnI5DigEBgf2kw35LTeqD9Otf+UDso02jhavbG/gJnkDyddU43r1MJpAiQ==";
licenseKey = "sRwAAAYRYmxpbmtpZC5naXRodWIuaW+qBF9heYYlTvZbvpaBIIDkJA/XQU6HolX+MNqSLG1m/fFMC1qqUZmBFli7qQfYreJbTgbHVh6giiJyVG43gHYPLatYM8ObP/ebmC3OYDUMf8bT/jFWQ6bNQ5bmJN3CdrdoZd/pJebqI+ZJDMDSL4Hs9KKOSseAkLQmpuxG6yQUhYaxLJvE02xXx0gr/tNFnH0bp2iaEHNlYhHlwFP7XVfZSKY3TFzu";
}

// 2. Create instance of SDK load settings with your license key
Expand All @@ -52,6 +52,9 @@ function main()
// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = "https://blinkid.github.io/blinkid-imagecapture-in-browser/resources";

// Set absolute location of the worker file
loadSettings.workerLocation = "https://blinkid.github.io/blinkid-imagecapture-in-browser/resources/BlinkIDImageCaptureWasmSDK.worker.min.js";

// 3. Load SDK
BlinkIDImageCaptureSDK.loadWasmModule(loadSettings).then(

Expand Down
4 changes: 2 additions & 2 deletions examples/blinkid-file/javascript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1>Processing...</h1>
</body>

<!-- Keep in mind that Unpkg CDN is used for demonstration, it's not intended to be used in production! -->
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.16.0/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.16.0/dist/blinkid-imagecapture-sdk.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.17.0/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.17.0/dist/blinkid-imagecapture-sdk.js"></script>
<script src="app.js"></script>
</html>
2 changes: 1 addition & 1 deletion examples/blinkid-file/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"typescript": "^3.9.5"
},
"dependencies": {
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.16.0"
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.17.0"
}
}
5 changes: 4 additions & 1 deletion examples/blinkid-file/typescript/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function main() {
}

// 1. It's possible to obtain a free trial license key on microblink.com
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmKoUbwQltserSykjeSEsSCVfWKqfxFvkLjL2HWEI4HOXr5m421vGohboFhYUw++ojPvtmcQFWJJRrk9Q/Wc7snrjjc/u/EJ3VrOYN9yv4dunEAoOlkbG9hsNBadI+i+Y1jfQn1qToIW+7nT0DZ4dHF9tCPFn7BsMNg+1irDkPFJVT6OL39v/hDzuvcUQ8qj5FRE8gsaRB2yI=";
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmLi04YqlzvLD9rIz4izOx4fnPF6gY0fQhFRXnhp4JFAoaEQ/u8BKDnAQ9ugvgYNY3pptTBU65iTZyXpRuXW9Etjp2JqNMs0zFk5sBcw2za1l0Y6aJlt+W/YqkAZqFMvxHsAxP/3w1ZB20RyiCE1t6AxbbhKnQ5RYQwp6j4qs8Kz5/MpDNl3VqrhG8THth+Rl8xv2d3HmNUyQIRQ==";

// 2. Create instance of SDK load settings with your license key
const loadSettings = new BlinkIDImageCaptureSDK.WasmSDKLoadSettings(licenseKey);
Expand All @@ -48,6 +48,9 @@ function main() {
// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = window.location.origin;

// Set absolute location of the worker file
loadSettings.workerLocation = window.location.origin + "/BlinkIDImageCaptureWasmSDK.worker.min.js";

// 3. Load SDK
BlinkIDImageCaptureSDK.loadWasmModule(loadSettings).then((sdk: BlinkIDImageCaptureSDK.WasmSDK) => {
document.getElementById("screen-initial")?.classList.add("hidden");
Expand Down
7 changes: 5 additions & 2 deletions examples/combined-file/javascript/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ function main()
}

// 1. It's possible to obtain a free trial license key on microblink.com
let licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmKoUbwQltserSykjeSEsSCVfWKqfxFvkLjL2HWEI4HOXr5m421vGohboFhYUw++ojPvtmcQFWJJRrk9Q/Wc7snrjjc/u/EJ3VrOYN9yv4dunEAoOlkbG9hsNBadI+i+Y1jfQn1qToIW+7nT0DZ4dHF9tCPFn7BsMNg+1irDkPFJVT6OL39v/hDzuvcUQ8qj5FRE8gsaRB2yI=";
let licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmLi04YqlzvLD9rIz4izOx4fnPF6gY0fQhFRXnhp4JFAoaEQ/u8BKDnAQ9ugvgYNY3pptTBU65iTZyXpRuXW9Etjp2JqNMs0zFk5sBcw2za1l0Y6aJlt+W/YqkAZqFMvxHsAxP/3w1ZB20RyiCE1t6AxbbhKnQ5RYQwp6j4qs8Kz5/MpDNl3VqrhG8THth+Rl8xv2d3HmNUyQIRQ==";

if (window.location.hostname === "blinkid.github.io")
{
licenseKey = "sRwAAAYRYmxpbmtpZC5naXRodWIuaW+qBF9heYYlTvZbvpaFiKNHg4G2awtEGd+imfxvW62DEqVTolHQnorEXKJzgyBWktsepe0hf/PatSjz1NPIGl5NpcBB3/+c6AY9qDvqBXueL4H8keVx9zfYCTMMBSYAXnlrkyHCAfenDxl2mrg7AGH85Yf7QCDiknrUdnI5DigEBgf2kw35LTeqD9Otf+UDso02jhavbG/gJnkDyddU43r1MJpAiQ==";
licenseKey = "sRwAAAYRYmxpbmtpZC5naXRodWIuaW+qBF9heYYlTvZbvpaBIIDkJA/XQU6HolX+MNqSLG1m/fFMC1qqUZmBFli7qQfYreJbTgbHVh6giiJyVG43gHYPLatYM8ObP/ebmC3OYDUMf8bT/jFWQ6bNQ5bmJN3CdrdoZd/pJebqI+ZJDMDSL4Hs9KKOSseAkLQmpuxG6yQUhYaxLJvE02xXx0gr/tNFnH0bp2iaEHNlYhHlwFP7XVfZSKY3TFzu";
}

// 2. Create instance of SDK load settings with your license key
Expand All @@ -52,6 +52,9 @@ function main()
// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = "https://blinkid.github.io/blinkid-imagecapture-in-browser/resources";

// Set absolute location of the worker file
loadSettings.workerLocation = "https://blinkid.github.io/blinkid-imagecapture-in-browser/resources/BlinkIDImageCaptureWasmSDK.worker.min.js";

// 3. Load SDK
BlinkIDImageCaptureSDK.loadWasmModule(loadSettings).then(

Expand Down
4 changes: 2 additions & 2 deletions examples/combined-file/javascript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>Processing...</h1>
</body>

<!-- Keep in mind that Unpkg CDN is used for demonstration, it's not intended to be used in production! -->
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.16.0/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.16.0/dist/blinkid-imagecapture-sdk.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.17.0/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.17.0/dist/blinkid-imagecapture-sdk.js"></script>
<script src="app.js"></script>
</html>
2 changes: 1 addition & 1 deletion examples/combined-file/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"typescript": "^3.9.5"
},
"dependencies": {
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.16.0"
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.17.0"
}
}
5 changes: 4 additions & 1 deletion examples/combined-file/typescript/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function main() {
}

// 1. It's possible to obtain a free trial license key on microblink.com
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmKoUbwQltserSykjeSEsSCVfWKqfxFvkLjL2HWEI4HOXr5m421vGohboFhYUw++ojPvtmcQFWJJRrk9Q/Wc7snrjjc/u/EJ3VrOYN9yv4dunEAoOlkbG9hsNBadI+i+Y1jfQn1qToIW+7nT0DZ4dHF9tCPFn7BsMNg+1irDkPFJVT6OL39v/hDzuvcUQ8qj5FRE8gsaRB2yI=";
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmLi04YqlzvLD9rIz4izOx4fnPF6gY0fQhFRXnhp4JFAoaEQ/u8BKDnAQ9ugvgYNY3pptTBU65iTZyXpRuXW9Etjp2JqNMs0zFk5sBcw2za1l0Y6aJlt+W/YqkAZqFMvxHsAxP/3w1ZB20RyiCE1t6AxbbhKnQ5RYQwp6j4qs8Kz5/MpDNl3VqrhG8THth+Rl8xv2d3HmNUyQIRQ==";

// 2. Create instance of SDK load settings with your license key
const loadSettings = new BlinkIDImageCaptureSDK.WasmSDKLoadSettings(licenseKey);
Expand All @@ -48,6 +48,9 @@ function main() {
// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = window.location.origin;

// Set absolute location of the worker file
loadSettings.workerLocation = window.location.origin + "/BlinkIDImageCaptureWasmSDK.worker.min.js";

// 3. Load SDK
BlinkIDImageCaptureSDK.loadWasmModule(loadSettings).then((sdk: BlinkIDImageCaptureSDK.WasmSDK) => {
document.getElementById("screen-initial")?.classList.add("hidden");
Expand Down
7 changes: 5 additions & 2 deletions examples/combined/javascript/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ function main()
}

// 1. It's possible to obtain a free trial license key on microblink.com
let licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmKoUbwQltserSykjeSEsSCVfWKqfxFvkLjL2HWEI4HOXr5m421vGohboFhYUw++ojPvtmcQFWJJRrk9Q/Wc7snrjjc/u/EJ3VrOYN9yv4dunEAoOlkbG9hsNBadI+i+Y1jfQn1qToIW+7nT0DZ4dHF9tCPFn7BsMNg+1irDkPFJVT6OL39v/hDzuvcUQ8qj5FRE8gsaRB2yI=";
let licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmLi04YqlzvLD9rIz4izOx4fnPF6gY0fQhFRXnhp4JFAoaEQ/u8BKDnAQ9ugvgYNY3pptTBU65iTZyXpRuXW9Etjp2JqNMs0zFk5sBcw2za1l0Y6aJlt+W/YqkAZqFMvxHsAxP/3w1ZB20RyiCE1t6AxbbhKnQ5RYQwp6j4qs8Kz5/MpDNl3VqrhG8THth+Rl8xv2d3HmNUyQIRQ==";

if (window.location.hostname === "blinkid.github.io")
{
licenseKey = "sRwAAAYRYmxpbmtpZC5naXRodWIuaW+qBF9heYYlTvZbvpaFiKNHg4G2awtEGd+imfxvW62DEqVTolHQnorEXKJzgyBWktsepe0hf/PatSjz1NPIGl5NpcBB3/+c6AY9qDvqBXueL4H8keVx9zfYCTMMBSYAXnlrkyHCAfenDxl2mrg7AGH85Yf7QCDiknrUdnI5DigEBgf2kw35LTeqD9Otf+UDso02jhavbG/gJnkDyddU43r1MJpAiQ==";
licenseKey = "sRwAAAYRYmxpbmtpZC5naXRodWIuaW+qBF9heYYlTvZbvpaBIIDkJA/XQU6HolX+MNqSLG1m/fFMC1qqUZmBFli7qQfYreJbTgbHVh6giiJyVG43gHYPLatYM8ObP/ebmC3OYDUMf8bT/jFWQ6bNQ5bmJN3CdrdoZd/pJebqI+ZJDMDSL4Hs9KKOSseAkLQmpuxG6yQUhYaxLJvE02xXx0gr/tNFnH0bp2iaEHNlYhHlwFP7XVfZSKY3TFzu";
}

// 2. Create instance of SDK load settings with your license key
Expand All @@ -57,6 +57,9 @@ function main()
// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = "https://blinkid.github.io/blinkid-imagecapture-in-browser/resources";

// Set absolute location of the worker file
loadSettings.workerLocation = "https://blinkid.github.io/blinkid-imagecapture-in-browser/resources/BlinkIDImageCaptureWasmSDK.worker.min.js";

// 3. Load SDK
BlinkIDImageCaptureSDK.loadWasmModule(loadSettings).then(

Expand Down
4 changes: 2 additions & 2 deletions examples/combined/javascript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1 id="msg">Loading...</h1>
</body>

<!-- Keep in mind that Unpkg CDN is used for demonstration, it's not intended to be used in production! -->
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.16.0/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.16.0/dist/blinkid-imagecapture-sdk.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.17.0/client-library/dist/client-library.js"></script>
<script src="https://unpkg.com/@microblink/blinkid-imagecapture-in-browser-sdk@5.17.0/dist/blinkid-imagecapture-sdk.js"></script>
<script src="app.js"></script>
</html>
2 changes: 1 addition & 1 deletion examples/combined/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"typescript": "^3.9.5"
},
"dependencies": {
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.16.0"
"@microblink/blinkid-imagecapture-in-browser-sdk": "~5.17.0"
}
}
5 changes: 4 additions & 1 deletion examples/combined/typescript/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function main() {
}

// 1. It's possible to obtain a free trial license key on microblink.com
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmKoUbwQltserSykjeSEsSCVfWKqfxFvkLjL2HWEI4HOXr5m421vGohboFhYUw++ojPvtmcQFWJJRrk9Q/Wc7snrjjc/u/EJ3VrOYN9yv4dunEAoOlkbG9hsNBadI+i+Y1jfQn1qToIW+7nT0DZ4dHF9tCPFn7BsMNg+1irDkPFJVT6OL39v/hDzuvcUQ8qj5FRE8gsaRB2yI=";
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPgo/w35CpGGmLi04YqlzvLD9rIz4izOx4fnPF6gY0fQhFRXnhp4JFAoaEQ/u8BKDnAQ9ugvgYNY3pptTBU65iTZyXpRuXW9Etjp2JqNMs0zFk5sBcw2za1l0Y6aJlt+W/YqkAZqFMvxHsAxP/3w1ZB20RyiCE1t6AxbbhKnQ5RYQwp6j4qs8Kz5/MpDNl3VqrhG8THth+Rl8xv2d3HmNUyQIRQ==";

// 2. Create instance of SDK load settings with your license key
const loadSettings = new BlinkIDImageCaptureSDK.WasmSDKLoadSettings(licenseKey);
Expand All @@ -52,6 +52,9 @@ function main() {
// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = window.location.origin;

// Set absolute location of the worker file
loadSettings.workerLocation = window.location.origin + "/BlinkIDImageCaptureWasmSDK.worker.min.js";

// 3. Load SDK
BlinkIDImageCaptureSDK.loadWasmModule(loadSettings).then((sdk: BlinkIDImageCaptureSDK.WasmSDK) => {
document.getElementById("screen-initial")?.classList.add("hidden");
Expand Down
Loading

0 comments on commit c18d0e0

Please sign in to comment.