How to processing the image for tesserac in java?

和自甴很熟 提交于 2020-01-06 08:07:50

问题


I am trying to read characters from a image below using Tesseract:

And here is my coding for reading the image.

Tesseract tesseract = new Tesseract();
        try {           

            String text = tesseract.doOCR(new File(path)); 

            // path of your image file 
            System.out.println(text); 
        } catch (TesseractException e) { 
            e.printStackTrace(); 
        }

I failed to get the accurate text from the image. So how can i processing the image before reading?


回答1:


tesseract is not suitable for captcha breaking.



来源:https://stackoverflow.com/questions/59367396/how-to-processing-the-image-for-tesserac-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!