Tag: javacpp

获取UnsatisfiedLinkError:创建TessBaseAPI时java.library.path中没有jnilept

我是java cpp和tesseract-ocr的新手。 几个小时后我遇到了一个问题。 我在创建TessBaseAPI时遇到了UnsatisfiedLinkError:java.library.path中没有 jnilept。 下面是我的代码。 public static void tesseractForPdf(String filePath) throws Exception { BytePointer outText; TessBaseAPI api = new TessBaseAPI();//getting the UnsatisfiedLinkError exception here. // Initialize tesseract-ocr with English, without specifying tessdata path if (api.Init(“.”, “ENG”) != 0) { System.err.println(“Could not initialize tesseract.”); System.exit(1); } // Open input image with leptonica library PIX image […]