Why Tesseract OCR library (iOS) cannot recognize text at all?

后端 未结 5 2328
失恋的感觉
失恋的感觉 2020-12-07 16:47

I\'m trying to use Tesseract OCR library in my iOS application. I downloaded tesseract-ios library from github and when I tried to recognize a simple text image

5条回答
  •  借酒劲吻你
    2020-12-07 17:41

    and my output is

    Solution :

     tesseract.language = @"eng+fra";
    
    tesseract.pageSegmentationMode = G8PageSegmentationModeAuto;
    tesseract.engineMode  = G8OCREngineModeTesseractCubeCombined;
    tesseract.image = [image.image g8_blackAndWhite];
    
    tesseract.maximumRecognitionTime = 60.0;
    [tesseract recognize];
    
    NSLog(@"%@", tesseract.recognizedText);
    
    reco_area.text = [tesseract recognizedText];
    

    for tessdata click here

提交回复
热议问题