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/33c32f17-52e0-4829-908a-1b1c780cf845%40googlegroups.com.

Reply via email to