[英]How to processing the image for tesserac in java?
I am trying to read characters from a image below using Tesseract:我正在尝试使用 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?
那么如何在阅读前处理图像?
tesseract 不适合验证码破解。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.