Extracting machine-readable data from an image file with the Web MRZ Scanner Module
In addition to live detection, the MRZ Scanner Module can extract information from still images imported from the gallery or any other source.
Once the scanning is done, the scanner returns the same result type as the live scanner.
async createMrzScannerEngine(): Promise<Config.MrzScanner>
Example usage:
...
reader.readAsArrayBuffer(file);
reader.onload = async (e) => {
const engine = await scanbotSDK.createMrzScannerEngine();
const buffer = reader.result as ArrayBuffer;
const image = ScanbotSDK.Config.Image.fromEncodedBinaryData(buffer);
const result = await engine.run(image);
await engine.destroy();
};
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get free trial license