Open shishaozheng opened 5 years ago
Hi, try to replace eng.traineddata with https://github.com/tesseract-ocr/tessdata/releases/tag/4.0.0, my repo is old version traineddata.
Thank you for replying, actually I already use the latest official tessdata. I think the problem is related with the single line mode, because if I use the whole page as the input image instead of single line image which cropped with text line detection method implemented by myself, then change the engine mode from single line to block, the result seems good.
Hi, Thank you for update the ios lib to the tesseract 4.0.0 release version. I try to use it for almost same images with following language and mode (official fast eng tessdata):
let tesseract:G8Tesseract = G8Tesseract(language: "eng", engineMode: G8OCREngineMode.lstmOnly) tesseract.pageSegmentationMode = .singleLine
I try three times, but the result is quite different, just first one is correct, the other two results is so confused.