It's just an idea but tessdata_best seems to fit better than tessdata if
you specify OEM_LSTM_ONLY. Did you try that?
2019年8月26日月曜日 14時21分14秒 UTC+9 Tintu Jacob:
>
> Please find the result obtained from
> tesseract
>
> Check Nationality,dob n expiry date
>
> <<Civil FRONT OCR Result :- >>
>
> STATE oF KUWAIT evi no = 5%
>
> CDN 285031504457 wat hon
>
> Pallas La; daa ~~
> Name MOHAMMAD RAHAT
> ABDUL KHALIQ
> ON +L yaonaity IND SA a
> < b Sex " Aa so i
>
> Burth Date 1503/1985 SA fol
> EpayDate {8/0412020 LST pL
>
>
> Please find the code to do ocr in tesseract
>
> Tesseract instance = new Tesseract();
> // SET THE TESSDATA PATH
> instance.setDatapath(tesseractPath);
>
>
> instance.setOcrEngineMode(TessOcrEngineMode.OEM_LSTM_ONLY);
> instance.setLanguage("eng");
> instance.setPageSegMode(TessPageSegMode.PSM_AUTO);
>
> instance.setTessVariable("load_freq_dawg", "true");
> instance.setTessVariable("load_system_dawg",
> "true");
>
>
> instance.setTessVariable("tessedit_char_whitelist","AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0123456789/<");
>
> data = instance.doOCR(image);
>
>
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/fccd8932-c7bd-4165-91f5-c3615a584da3%40googlegroups.com.