Capture data. Simply
idCapture enables scanning of identification documents with OCR,
MRZ data or barcode.
Scan front and back side of ID in the same Api request.
High precision in extracting all data from image analisys.
Generates biometric profiles instantly.
Improve your authentication
and registration processes.
First of all link the library from https://demo.idcapture.es/js/bidcapture-1.0.6.3-rc.min.js
You need to set some data attributes to initializate the component.
<script src="https://demo.idcapture.es/js/bidcapture-1.0.6.3-rc.min.js" data-container="container" data-callback="initIdCapture" defer></script>
With the html data-container
attribute we set the DOM element which will contain idCapture component.
<div id="container"></div>
And with the html data-callback
attribute we set the javascript function which will control the initialization of the component.
<script>
window.initIdCapture = function (Bidcapture) {
Bidcapture.setSize(480,360);
Bidcapture.onConnect = function () {
Bidcapture.setMode('REVDNI');
Bidcapture.enable();
}
Bidcapture.onMrzData = function (mrz_data) {
console.log(mrz_data);
}
};
</script>
That's all. Put your ID card in front of your webcam and start collecting data.
For more options refer to the complete API documentation.