Microblink:提取发行人名称

Microblink: Extracting the issuer name

虽然我们能够做到这一点 Android,但我们还没有在 iOS 上获得发行者名称。

// after Microblink has looked at an image (from the camera roll)
func recognizerRunner(_ recognizerRunner: MBCRecognizerRunner, didFinishScanningWith state: MBCRecognizerResultState) {
    if state == .valid { // values: .empty, .uncertain, .valid, .stageValid
        let result = blinkCardRecognizer.result
        
        DispatchQueue.main.async(execute: {() -> Void in
            let details = VerificationDetails(firstSix: self.firstSix(result.cardNumber),
                                              lastFour: self.lastFour(result.cardNumber),
                                              name: result.owner,
                                              brand: result.issuer)
            self.delegate?.scanningSuccess(details: details)
        })
    }
    else {
        self.delegate?.scanningFailed()
    }
}

问题是 result.issuer 正在返回一个 MBCIssuer 对象,我找不到它的任何文档。如何从 MBCIssuer?

中检索字符串

找到了。可从: MBCBlinkCardUtils.issuer(toString: result.issuer)