BlinkID SDK is a delightful component for quick and easy scanning of ID cards, passports and drivers licenses. The SDK is powered with MicroBlink's industry-proven and world leading OCR and barcode scanning technology, and offers:
- integrated camera management
- layered API, allowing everything from simple integration to complex UX customizations.
- lightweight and no internet connection required
- enteprise-level security standards
- data parsing from ID barcode standards
BlinkID is a part of family of SDKs developed by MicroBlink for optical text recognition, barcode scanning, ID document scanning and many others.
The purpose of this plugin is to leverage Hybrid Applications with BlinkID SDK features. With this plugin the users can read the Card ID within a Web Application.
As with all the cordova plugins, the plugin isn't available until the execution of deviceready
event.
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
// ...
}
- iOS
- Android
- Run the following command:
cordova plugin add https://github.com/OutSystems/Cordova-Plugin-Micro-Blink-ID.git
The Blink ID Plugin
provides an easy way to read ID cards and get a JSON with the result in your WebApp.
-
readCardId: Method to read ID Cards, passports and drivers licenses.
-
scanDocuments: ***** Comming Soon *****
Parameters:
-
licenseKey: License generated on Micro Blink Dashboard. License key is locked to a bundle ID, a unique identifier of your app. To learn more about bundle ID see the official documentation.
-
successCallback: A callback that is passed when the service is started with success. (Function)
-
errorCallback: A callback that executes if an error occurs retrieving the
Blink ID Plugin
readCardId. (Function)
var success = function (r) {
console.log(r);
}
var fail = function (error) {
console.log(error);
}
var licenseKey = "YOUR_LICENSE";
cordova.plugins.blinkId.readCardId(success, fail, licenseKey);
The success callback gets a JSON object with the following contents:
{
"dateOfBirth" : "",
"nationality" : "",
"documentCode" : "",
"sex" : "",
"dateOfExpiry" : "",
"issuer" : "",
"primaryId" : "",
"opt2" : "",
"mrzText" : "",
"isParsed" : "",
"secondaryId" : "",
"opt1" : "",
"documentNumber" : ""
}
- OutSystems - Mobility Experts
- João Gonçalves, [email protected]
- Rúben Gonçalves, [email protected]
- Vitor Oliveira, [email protected]
- Vitor Oliveira, [email protected]
###Copyright OutSystems, 2015
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.