Skip to content

Commit

Permalink
Merge pull request #143 from BlinkID/jenkins/stable-build
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancuric authored Aug 8, 2024
2 parents 69f334b + 057f800 commit 08c198f
Show file tree
Hide file tree
Showing 80 changed files with 1,012 additions and 3,322 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release notes

## 6.9.1

- Fixes iOS camera selection logic when the system locale is set to Spanish

## 6.9.0

### New features
Expand Down
25 changes: 6 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
# BlinkID In-browser SDK

## How to run this repo?

Test this repo quickly on your machine (assuming you have Node and Git installed) by doing the following steps:

- clone [this](https://github.com/BlinkID/blinkid-in-browser) repo by running `git clone https://github.com/BlinkID/blinkid-in-browser` in your Terminal
- run `cd blinkid-in-browser/examples/getting-started && npm install && npm run dev`
- get the license at [Microblink DevHub](https://developer.microblink.com/) and add it to the `LICENSE` variable in the `main.js` file in the `examples/getting-started` folder
- open [http://localhost:5173/](http://localhost:5173/)
- port may be different in your case, check the output of the `npm run dev` command noted above
- point your ID towards the camera

If you prefer a short, 3 minute, video for running this project, feel free to check it out [here](https://www.youtube.com/watch?v=c0ZA8af9oBc).

If you want to recreate this project from scratch, step by step, please check out this tutorial: [Integrating ID Scanning and Extraction In Web Apps With BlinkID SDK](examples/getting-started/).

---

[![Build Status](https://travis-ci.org/BlinkID/blinkid-in-browser.svg?branch=master)](https://travis-ci.org/BlinkID/blinkid-in-browser) [![npm version](https://badge.fury.io/js/%40microblink%2Fblinkid-in-browser-sdk.svg)](https://badge.fury.io/js/%40microblink%2Fblinkid-in-browser-sdk)


BlinkID In-browser SDK enables scanning of various identity documents, including driving licenses, national identity cards, passports and others. The SDK provides real-time in-browser data extraction, without any need for sending images to servers for processing.

For more information on how to integrate BlinkID SDK into your web app, read the [instructions](#integration) below. Make sure you read the latest [CHANGELOG.md](CHANGELOG.md) file to see the most recent changes and improvements.

Check out the [official demo app](https://demo.microblink.com/in-browser-sdk/blinkid/) or live examples of BlinkID SDK in action:

1. [BlinkID SDK with built-in UI](https://blinkid.github.io/blinkid-in-browser/ui/demo.html)
* See what the bare UI looks like at [Codepen](https://codepen.io/microblink/pen/GRZGQab)
2. [Scan the front side of an identity document with a web camera](https://blinkid.github.io/blinkid-in-browser/examples/blinkid-camera/javascript/index.html)
* See example at [Codepen](https://codepen.io/microblink/pen/gOPJoRp)
3. [Scan the front side of an identity document by uploading its image](https://blinkid.github.io/blinkid-in-browser/examples/blinkid-file/javascript/index.html)
* See example at [Codepen](https://codepen.io/microblink/pen/ExPzzda)
4. [Scan both sides of an identity document with a web camera](https://blinkid.github.io/blinkid-in-browser/examples/multi-side/javascript/index.html)
* See example at [Codepen](https://codepen.io/microblink/pen/BajeeMx)
5. [Scan both sides of an identity document by uploading its image](https://blinkid.github.io/blinkid-in-browser/examples/multi-side-file/javascript/index.html)
* See example at [Codepen](https://codepen.io/microblink/pen/MWboMrr)
6. [Scan barcode from an identity document from web camera](https://blinkid.github.io/blinkid-in-browser/examples/idbarcode/javascript/index.html)
* See example at [Codepen](https://codepen.io/microblink/pen/NWxVVJO)

To see the source code of the above examples, check out the [examples directory](examples). If you'd like to run examples of the UI component, either through the browser or locally, see the [ui/examples](ui/examples) directory.

Expand All @@ -40,7 +28,6 @@ Please keep in mind that BlinkID In-browser SDK is meant to be used natively in
## Table of contents

- [BlinkID In-browser SDK](#blinkid-in-browser-sdk)
- [How to run this repo?](#how-to-run-this-repo)
- [Table of contents](#table-of-contents)
- [ Components of SDK](#-components-of-sdk)
- [ Integration instructions](#-integration-instructions)
Expand Down
4 changes: 2 additions & 2 deletions examples/blinkid-camera/javascript/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ function main()
}

// 1. It's possible to obtain a free trial license key on microblink.com
let licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPk4/w35CpJlWLsMUzyluK70/xu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BXy3F70hqxQOQAig==";
licenseKey = "sRwAAAYRYmxpbmtpZC5naXRodWIuaW+qBF9hPYYlTvZbRmaB1oPhWJJC5lf5QyYKzxSeA0m4NJW24Zs6ZPfXfRca6R3mk0cXQZ5DmmTryjTDfzXuW0LpaPXXr1IkD81yI2As2usPCBHFliP/yki7g3v4rTPKDfgj/FAz72ZQZyruv3luyiY8L5U3M3pjdFdts+GkkvJCCC7nELFU5rnEQgeWKGyrgQ8auXX+dV8a0nmysbFGV9jVb1/+oUMScG2rqayiKCyTrTIjgDKC9lqAAYt1rQB4PgqfjIMOwndnJl5rVD5Nbj5A3D3+z4ErVD551nYykyQQcBp9FwfOXp4OJ7N8j5pKtBhfYo7aqrTG5/KSRQ==";
}

// 2. Create instance of SDK load settings with your license key
Expand Down
2 changes: 1 addition & 1 deletion examples/blinkid-camera/javascript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ <h1 id="msg">Loading...</h1>
</body>

<!-- Keep in mind that the jsDelivr CDN is used for demonstration, it's not intended to be used in production! -->
<script src="https://cdn.jsdelivr.net/npm/@microblink/blinkid-in-browser-sdk@6.9.0/dist/blinkid-sdk.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@microblink/blinkid-in-browser-sdk@6.9.1/dist/blinkid-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-in-browser-sdk": "~6.9.0"
"@microblink/blinkid-in-browser-sdk": "~6.9.1"
}
}
2 changes: 1 addition & 1 deletion examples/blinkid-camera/typescript/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main() {
}

// 1. It's possible to obtain a free trial license key on microblink.com
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPk4/w35CpJlWLsMUzyluK70/xuVxz8ABrvYsc6K8qqHwklMLcmZ9e95cYAE2j+KJXGR/GBkeukLaT8sLvD0MjKnYXwQxXUIqQMXC7N/i8ZlbagoJ2pnJu0BDka67+4QI0IWdpYaO9rA5iP9mfNjPUD8ZwchKfS1PzKeoRpyYCYb4q+PLmXwIt/fXXOfG60pMf+ocFcjE9iYg3QSLaE9Zczlv06nzSvvTISR/gN0TXChtPiXiOlLhZ2YrP1dnlve+Cy8Kn5iGx9RzBzY4LR0rCE/U0eS3oxh3EFbyABXQx1wiCWzQgQDGzBljhM6yN+le1hs3oS6kOUY=";
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPk4/w35CpJlWLts7Z6SUn3qcE1y5FxK93PFckWnYJYHZb43pMSynkGsypNMv7+HcjKXrIcWBXbSQwgW9nv7V/blkAM1WNj9J6R/dSv0+1uG7HJ8o46sLCZlIyUdt0Z2YspZpqQCibMm5lyM2Uthi0ahWfoxTgYPvqSW8qdPjscGJe/9yVwyRUBk9NXX83N8pUPYZw+OK+kbTw1tjlOd7tJOzxjqv0P4YH0IS6pR6KfhG+KZ55nTuMWlIeyKx8Fui7y2kkLvam6S1RbPeV2fPdz+ijaFA/HDDqe7gIx3ZA+mvthD/Zm1Itmw41MDzLeSpoN4xRJ7nvs0=";

// 2. Create instance of SDK load settings with your license key
const loadSettings = new BlinkIDSDK.WasmSDKLoadSettings(licenseKey);
Expand Down
4 changes: 2 additions & 2 deletions examples/blinkid-file/javascript/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ function main()
}

// 1. It's possible to obtain a free trial license key on microblink.com
let licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPk4/w35CpJlWLsMUzyluK70/xuVxz8ABrvYsc6K8qqHwklMLcmZ9e95cYAE2j+KJXGR/GBkeukLaT8sLvD0MjKnYXwQxXUIqQMXC7N/i8ZlbagoJ2pnJu0BDka67+4QI0IWdpYaO9rA5iP9mfNjPUD8ZwchKfS1PzKeoRpyYCYb4q+PLmXwIt/fXXOfG60p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/yki7g3v4rTPKDfgj/FAz72ZQZyruv3luyiY8L5U3M3pjdFdts+GkkvJCCC7nELFU5rnEQgeWKGyrgQ8auXX+dV8a0nmysbFGV9jVb1/+oUMScG2rqayiKCyTrTIjgDKC9lqAAYt1rQB4PgqfjIMOwndnJl5rVD5Nbj5A3D3+z4ErVD551nYykyQQcBp9FwfOXp4OJ7N8j5pKtBhfYo7aqrTG5/KSRQ==";
}

// 2. Create instance of SDK load settings with your license key
Expand Down
2 changes: 1 addition & 1 deletion examples/blinkid-file/javascript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ <h1>Processing...</h1>
</body>

<!-- Keep in mind that the jsDelivr CDN is used for demonstration, it's not intended to be used in production! -->
<script src="https://cdn.jsdelivr.net/npm/@microblink/blinkid-in-browser-sdk@6.9.0/dist/blinkid-sdk.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@microblink/blinkid-in-browser-sdk@6.9.1/dist/blinkid-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-in-browser-sdk": "~6.9.0"
"@microblink/blinkid-in-browser-sdk": "~6.9.1"
}
}
2 changes: 1 addition & 1 deletion examples/blinkid-file/typescript/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function main() {
}

// 1. It's possible to obtain a free trial license key on microblink.com
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPk4/w35CpJlWLsMUzyluK70/xuVxz8ABrvYsc6K8qqHwklMLcmZ9e95cYAE2j+KJXGR/GBkeukLaT8sLvD0MjKnYXwQxXUIqQMXC7N/i8ZlbagoJ2pnJu0BDka67+4QI0IWdpYaO9rA5iP9mfNjPUD8ZwchKfS1PzKeoRpyYCYb4q+PLmXwIt/fXXOfG60pMf+ocFcjE9iYg3QSLaE9Zczlv06nzSvvTISR/gN0TXChtPiXiOlLhZ2YrP1dnlve+Cy8Kn5iGx9RzBzY4LR0rCE/U0eS3oxh3EFbyABXQx1wiCWzQgQDGzBljhM6yN+le1hs3oS6kOUY=";
const licenseKey = "sRwAAAYJbG9jYWxob3N0r/lOPk4/w35CpJlWLts7Z6SUn3qcE1y5FxK93PFckWnYJYHZb43pMSynkGsypNMv7+HcjKXrIcWBXbSQwgW9nv7V/blkAM1WNj9J6R/dSv0+1uG7HJ8o46sLCZlIyUdt0Z2YspZpqQCibMm5lyM2Uthi0ahWfoxTgYPvqSW8qdPjscGJe/9yVwyRUBk9NXX83N8pUPYZw+OK+kbTw1tjlOd7tJOzxjqv0P4YH0IS6pR6KfhG+KZ55nTuMWlIeyKx8Fui7y2kkLvam6S1RbPeV2fPdz+ijaFA/HDDqe7gIx3ZA+mvthD/Zm1Itmw41MDzLeSpoN4xRJ7nvs0=";

// 2. Create instance of SDK load settings with your license key
const loadSettings = new BlinkIDSDK.WasmSDKLoadSettings(licenseKey);
Expand Down
Loading

0 comments on commit 08c198f

Please sign in to comment.