Comments (4)
The doc states: "On Linux, scanning requires installation of SANE packages." Have you installed it?
from vietocr3.
It was recently discovered that the jsane
library, the java wrapper to the SANE
functions, only works with Linux 32-bit. Running it on Linux 64-bit will throw UnsatisfiedLinkError exceptions. It looks like a libjsane.so
has to be compiled for 64-bit.
Background: http://imagej.1557.x6.nabble.com/Scan-does-not-scan-td3685074.html
Source: http://thorntonzone.com/manuals/Compression/Fax,%20IBM%20MMR/MMSC/mmsc/uk/co/mmscomputing/device/sane/index.html
from vietocr3.
We can recompile the library on Linux Ubuntu 64-bit, but it looks like some change to the source code is necessary as UnsatisfiedLinkError exceptions still happen. Need JNI expert help!
from vietocr3.
In my opinion you should leave out the scan option in the GUI. The uk.co.mmscomputing.device.sane.jar
is too old for modern java ...
Nevertheless I gave it a try:
As outlined you need lin64 code. I fetched it from
ttps://github.com/julian554/jscan/tree/master/src/main/java/uk/co/mmscomputing/device/sane/lin64
,
corrected the location of some include files and replaced libsane.so
in jsane.cpp
by libsane.so.1
. Now build lib with
g++ -Wall -fPIC -fpermissive -pthread -D_REENTRANT -D_GNU_SOURCE -shared -o libjsane.so jsane.cpp jdesc.cpp jnu.cpp
and get 64-bit libjsane.so
. I copied this into /usr/lib
so that it can be found by the program. Starting the JAR the above error messages are gone BUT I get a fatal error detected by the Java Runtime Environment ( SIGSEGV fault ). Here I gave up.
from vietocr3.
Related Issues (17)
- How to use training data ? HOT 1
- Convert to Maven or gradle structure for larger audience, idea? HOT 3
- how can I use it on windows? HOT 3
- Crashes on MacOS with brew and tesseract 4.0.0 installed HOT 6
- Kannada (kan) output is not readable HOT 16
- Enable Kannada (kn) localization on transifex HOT 2
- Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed HOT 2
- String improvement suggestion HOT 2
- java.lang.OutOfMemoryError: Java heap space - on Mac HOT 6
- How can I install VietOCR3? HOT 1
- Error when running `java -jar ...` HOT 1
- Unable to install the language trained data HOT 1
- How to open several images HOT 19
- how to manually config language file if I don't have write access to C:\Program Files\Tesseract-OCR\tessdata folder? HOT 6
- x.DangAmbigs.txt not taken into account with bulk OCR HOT 2
- Displaying fragmented regions does not work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vietocr3.