Skip to main content

Scan from Image

The MRZ Scanner also has the ability to perform scanning on a static image. It quickly analyzes the image and identifies any MRZ present within it. Once the scanning is done, the scanner returns the same result type as the live scanner.

async createSimpleMRZRecognizer(): Promise<SimpleMrzRecognizer>

Example usage:

...
reader.readAsDataURL(file);

reader.onload = async (e) => {
const recognizer = await scanbotSDK.createSimpleMRZRecognizer();
const result = await recognizer.recognizeURL(reader.result);
await recognizer.release();
};

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License

What do you think of this documentation?