Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在java中处理tesserac的图像?_Java_Image Processing_Imagemagick_Tesseract - Fatal编程技术网

如何在java中处理tesserac的图像?

如何在java中处理tesserac的图像?,java,image-processing,imagemagick,tesseract,Java,Image Processing,Imagemagick,Tesseract,我正在尝试使用Tesseract读取下面图像中的字符: 这是我用来读取图像的代码 Tesseract tesseract = new Tesseract(); try { String text = tesseract.doOCR(new File(path)); // path of your image file System.out.println(text);

我正在尝试使用Tesseract读取下面图像中的字符:

这是我用来读取图像的代码

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(); 
        }

我无法从图像中获得准确的文本。那么,在读取之前如何处理图像呢?

tesseract不适合验证码中断。

tesseract不适合验证码中断。

除了tesseract之外,还有什么建议吗?当然。如果您对访问服务的需求是合法的,请联系web提供商并请求API访问。除tesseract外,还有其他建议吗?当然。如果您需要访问服务是合法的,请联系web提供商并请求API访问。