问题
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