我试图在我的项目中使用Tess4J从图像中提取文本.我尝试运行OCR时收到以下错误:线程"main"中的异常java.lang.Error:无效的内存访问
try {
File imageFile = new File("example4.jpg");
Tesseract instance = Tesseract.getInstance(); // JNA Interface Mapping
//Tesseract1 instance = new Tesseract1();
String result = instance.doOCR(imageFile);
System.out.println(result);
} catch (Exception e) {
e.printStackTrace();
}
Run Code Online (Sandbox Code Playgroud)