linux中的java tesseract错误“无法加载库'tesseract':libtesseract.so"

编程入门 行业动态 更新时间:2024-10-28 04:28:29
本文介绍了linux中的java tesseract错误“无法加载库'tesseract':libtesseract.so"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我在 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 23:14:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1401089.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   错误   tesseract   linux   java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!