我正在使用这部分代码进行检测,但无论我做什么,它都无法检测到机器可读区 (MRZ)。
String recognizedText = firebaseVisionCloudText.getText();
for (FirebaseVisionCloudText.Page page: firebaseVisionCloudText.getPages()) {
List<FirebaseVisionCloudText.DetectedLanguage> languages =
page.getTextProperty().getDetectedLanguages();
int height = page.getHeight();
int width = page.getWidth();
float confidence = page.getConfidence();
for (FirebaseVisionCloudText.Block block: page.getBlocks()) {
Rect boundingBox = block.getBoundingBox();
List<FirebaseVisionCloudText.DetectedLanguage> blockLanguages =
block.getTextProperty().getDetectedLanguages();
float blockConfidence = block.getConfidence();
}
}
是否有可能无法读取字体?如果是这样,是否可以选择添加字体?也可以将 Ml Kit 与 Tesseract 结合起来吗?