linux中的java tesseract错误“无法加载库'tesseract':libtesseract.so" [英] java tesseract error in linux "Unable to load library 'tesseract': libtesseract.so"

查看:68
本文介绍了linux中的java tesseract错误“无法加载库'tesseract':libtesseract.so"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Eclipse 中使用 tess4J ocr 库,并且在我的 Windows 中运行良好.但是当我想在 linux 中运行那个 java 程序时,它给出了一个错误无法加载库‘tesseract’:libtesseract.so:无法打开共享对象文件:没有这样的文件或目录".

I am using tess4J ocr library in eclipse and is working fine in my windows. But when i want to run that java program in linux it is giving an error "Unable to load library 'tesseract': libtesseract.so: cannot open shared object file: No such file or directory".

我在 linux 上没有任何权限来安装 tesseract 或任何其他软件.只是我可以使用 jar 文件并通过调用 shell 脚本来运行 java 程序.请帮我解决这个问题.因为我认为我的问题将通过获取 libtesseract.so 文件来解决,或者帮助我如何在 windows 中获取 libtesseract.so 以便我将在 linux 中使用它.请帮助并提前致谢

I dont have any permissions on linux to install the tesseract or any other software . Just i can use the jar files and run the java program by calling the shell script.Please help me on this . As I am thinking my problem will be solved by getting libtesseract.so file or help me how to get libtesseract.so in windows so that i will use that in linux . Please help and thank in advance

推荐答案

在 Linux 上,Tess4J 调用 Tesseract 原生库 libtesseract.so 来工作.如果您无法在 Linux 上构建或安装 Tesseract,那您就走运了.也许如果您可以使用 Cygwin 或 Mingw 在 Windows 上交叉编译为 .so.

On Linux, Tess4J calls on Tesseract native library libtesseract.so to work. If you can't build or install Tesseract on Linux, you're in tough luck. Maybe if you can cross-compile to a .so on Windows using Cygwin or Mingw.

这篇关于linux中的java tesseract错误“无法加载库'tesseract':libtesseract.so"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆