Tess4j(v 4.0.0)-找不到指定的模块异常

时间:2018-08-02 10:27:48

标签: java tesseract tess4j

我正在Java中使用tess4j v4.0构建OCR模块,但是当我尝试执行它时,却遇到了(找不到指定的模块)异常的情况。 我已经安装了VC ++ 2015 Runtime Libraries,但是没有用。 完整的调试报告如下。

Looking in classpath from java.net.URLClassLoader@14ae5a5 for /com/sun/jna/win32
-x86-64/jnidispatch.dll
Found library resource at jar:rsrc:jna-4.5.2.jar!/com/sun/jna/win32-x86-64/jnidi
spatch.dll
Looking for library 'libtesseract400'
Adding paths from jna.library.path: C:\Users\ADMINI~1\AppData\Local\Temp\tess4j\
win32-x86-64
Trying C:\Users\ADMINI~1\AppData\Local\Temp\tess4j\win32-x86-64\libtesseract400.
dll
Adding system paths: []
Trying C:\Users\ADMINI~1\AppData\Local\Temp\tess4j\win32-x86-64\libtesseract400.
dll
Looking for lib- prefix
Trying liblibtesseract400.dll
Looking in classpath from java.net.URLClassLoader@14ae5a5 for libtesseract400
Found library resource at jar:rsrc:tess4j-4.0.0.jar!/win32-x86-64/libtesseract40
0.dll
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.UnsatisfiedLinkError: The specified module could not be fou
nd.

        at com.sun.jna.Native.open(Native Method)
        at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:288)
        at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:427)
        at com.sun.jna.Library$Handler.<init>(Library.java:179)
        at com.sun.jna.Native.loadLibrary(Native.java:569)
        at com.sun.jna.Native.loadLibrary(Native.java:544)
        at net.sourceforge.tess4j.util.LoadLibs.getTessAPIInstance(LoadLibs.java
:81)
        at net.sourceforge.tess4j.TessAPI.<clinit>(TessAPI.java:42)
        at net.sourceforge.tess4j.Tesseract.init(Tesseract.java:364)
        at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:277)
        at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:209)
        at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:193)
        at com.otsi.ocrpoc.App.crackImage(App.java:29)
        at com.otsi.ocrpoc.App.main(App.java:64)
        ... 5 more

0 个答案:

没有答案