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 licenseScanbot SDK is part of the Apryse SDK product family
A mobile scan is just the start. With Apryse SDKs, you can expand mobile workflows into full cross‑platform document processing. Whether you need to edit PDFs, add secure digital signatures, or use a fast, customizable document viewer and editor, Apryse gives you the tools to build powerful features quickly.
Learn more
