jjzjj

textDetector

全部标签

ios - Firebase MLKit 文本识别错误

我正在尝试使用FirebaseMLKit对我的图像进行OCR,但失败并返回错误Textdetectionfailedwitherror:Failedtoruntextdetectorbecauseselfisnil.///Detectstextsonthespecifiedimageanddrawsaframeforthem.funcdetectTexts(){letimage=#imageLiteral(resourceName:"testocr")//Createatextdetector.lettextDetector=vision.textDetector()//Checkco