Comments (10)
Please provide the exact mimetype and a test file, thank you.
from tess4j.
image: https://www.dropbox.com/s/dtb1ra7jqdk9shw/workingimage004.png
uzn: https://www.dropbox.com/s/o2j6atqnwqx7kir/workingimage004.uzn
Run with: tesseract workingimage004.png manual_ocr.txt -psm 4
the output should be
ANNEX TO THE EUROPEAN SEARCH REPORT
ON EUROPEAN PATENT APPLICATION NO.
from tess4j.
Hey @4F2E4A2E,
Just a friendly question, are you checking on this?
I just want to know if should I wait or try a different solution! Thanks
from tess4j.
Yes i am, pls get online in skype, thx.
from tess4j.
Something is not right:
- the png file provided have a lot more content then two lines
- the uzn file provided seams to be empty or with just 26Bytes
- you did not provide the mimetype
Help me out, this kind of format is new to me, in order to help i must be able to be 100% sure of the data integrity of those files and i need to be able to produce the uzn files, thanks.
from tess4j.
via brucardoso2: https://github.com/OpenGreekAndLatin/greek-dev/wiki/uzn-format
from tess4j.
Thanks brucardoso2 for introducing me to uzn.
Our lib does support it, but not automated, but it will in our next release. Untill then just parse your uzn and populate the java.awt.Rectangle. Here an example without reading in the uzn file and parsing it:
File imageFile = new File("workingimage004.png");
Tesseract instance = Tesseract.getInstance(); // JNA Interface Mapping
File tessDataFolder = LoadLibs.extractTessResources("tessdata");
instance.setDatapath(tessDataFolder.getAbsolutePath());
//parse the uzn file and create a rectangle obj
Rectangle rect = new Rectangle(600, 213, 1142, 240);
try {
String result = instance.doOCR(imageFile, rect);
System.out.println(result);
} catch (TesseractException e) {
System.err.println(e.getMessage());
}
}
from tess4j.
A proposal has been created as you can read here: #11
@brucardoso2: can i close this issue?
from tess4j.
@4F2E4A2E sure
from tess4j.
Closing issue.
from tess4j.
Related Issues (20)
- DLL Extracting on linux even when using custom libs path and not utilizing LoadLibs.extractTessResources() HOT 5
- Error calculating angle in ImageDeskew HOT 12
- Docker Image with Java 11 + tess4j:5.2.0 + Spring Boot 2.6.6 not working HOT 9
- Getting error Invalid memory access when use Tess4j in JAVA project Netbeans HOT 2
- OCRResult only contains last page's scan
- "createDocumentsWithResults(...)" fails when "filename" is null HOT 2
- Performance degradation for multipaged tiff ocr result HOT 2
- error: Error looking up function 'TessBaseAPIInit5': dlsym(0x7fe46b6d06a0, TessBaseAPIInit5): symbol not found HOT 1
- Tesseract.doOCR() failing on Windows from cmd line for Java 17, works in eclipse HOT 2
- JVM crash on M1 / MacOS with tess4j HOT 4
- Can tess4j be used to convert a pdf with images as content to a searchable pd HOT 2
- doOCR() vs. createDocuments() / createDocumentsWithResults() HOT 4
- meanTextConfidence is 0 for doc with empty last page but non-empty others in createDocumentsWithResults method HOT 2
- java.lang.UnsatisfiedLinkError HOT 4
- TIFF to PDF (text_only==false) recognition (or conversion) failed. HOT 3
- Tess4j not work on Mac M1 even with new JNA5.12.1 HOT 2
- linux
- Memory leak when using tess4j for parallel processing in docker environment HOT 1
- Tess4j does not correctly handle images with alpha channel HOT 8
- java.lang.UnsatisfiedLinkError : Error Looking Up function TessBaseAPICreate : The specified procedure can not be found. Tess4j 5.8.0 HOT 5
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 tess4j.