MRZ Capture

Within Auto Capture there is an MRZ reading feature and this section contains the necessary knowledge to understand the start auto mrz capture in BiometridStandard.

BiometridStandard.getInstance().startAutoMRZCapture(viewController: self, options: options, callback: self)
Parameter
Description

viewController: UIViewController

View Controller to open the auto capture screen

options: CaptureOptions?

Options to change customization of screen

callback: ProcessCallback?

callback

Implementation example

import UIKit import BiometridStandard import AutoCaptureWrapper

class ViewController: UIViewController, AutoCaptureCallback {

import UIKit
import BiometridStandard
import AutoCaptureWrapper

class ViewController: UIViewController, ProcessCallback {
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }
    
    @IBAction func startAutoCaptureBtn(_ sender: Any) {
        let options = CaptureOptions()
        BiometridStandard.getInstance().startAutoCapture(viewController: self, options: options, callback: self)
    }
    
    func mrzCallback(status: Bool, result: AutoCaptureWrapper.MRZData?) {
        if !status {
            print("Error")
            return
        }
        print("result", result)
    }
}

Callback params

Parameter
Description

status: Bool

Method request status

result: MRZData

Class with data from mrz scan

Was this helpful?