iOS 如何使用 Tesseract OCR 库从图像中识别准确的文本?

How to recognise the accurate text from an image using Tesseract OCR Library in iOS?

我正在 Objective C 中创建一个 iPhone 应用程序。我正在尝试从图像(从相机拍摄)中识别文本。为此,我在我的应用程序 Tesseract OCR Library 中使用。它对某些文本工作正常,但无法从捕获的图像中获得准确的结果。还有来自 Google 代码的最新 tessdata 文件。

我从 this link 添加了 tesseract 库。

下面是我试图识别的图像:

我的代码如下:

    G8Tesseract *tesseract = [[G8Tesseract alloc] initWithLanguage:@"eng+fra" engineMode:G8OCREngineModeTesseractCubeCombined];
    [tesseract setVariableValue:@"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:;,.!-()#&÷" forKey:@"tessedit_char_whitelist"];
    tesseract.pageSegmentationMode = G8PageSegmentationModeAuto;
    tesseract.maximumRecognitionTime = 60.0;
    tesseract.image = [selectedImage g8_blackAndWhite];
    [tesseract recognize];

    NSLog(@"%@", [tesseract recognizedText]);

但我得到的结果是这样的:

BAZAAR

mm; l Savees l smmamm l mm; l Accessories

commemw Street ' _ . «mm. me o snwapnagay

www minabazaav.cum

我已经通过这个链接:

有没有其他人遇到同样的问题?

就我的情况而言,Tesseract Library 大多数时候都不准确。相反 Abby 还可以。但是艾比没有离线

Abby Whosebug Channel