Questions tagged [tess4j]

Tess4J is a Java JNA wrapper for Tesseract OCR API.

Description

A Java JNA wrapper for Tesseract OCR API.
Tess4J is released and distributed under the Apache License, v2.0.

Releases Versions.

  • Version 1.3 (released : May 31, 2014)
  • Version 2.0 Beta (released : June 1, 2014)
  • Version 3.4.3 (released: 14 January 2018)

Features:

The library provides optical character recognition (OCR) support for:

  • TIFF, JPEG, GIF, PNG, and BMP image formats
  • Multi-page TIFF images
  • PDF document format

Related tags

Links

Tess4J homepage
Tess4J Github

222 questions
0
votes
0 answers

Run tess4j project suddenly wrong?

I am referring to the project "https://github.com/mnadeem/ocr-tess4j-example", at the beginning of normal operation, suddenly being given a do not know how to solve? I tried to modify the eclipse jvm memory, but it seems no effect :(, or the project…
blue
  • 217
  • 6
  • 18
0
votes
2 answers

Android: Tesseract couldn't load any languages

Hi guys I am trying to run Tesseract and get the text from an image but I encounter the following error: Exception in thread "main" java.lang.Error: Invalid memory access at com.sun.jna.Native.invokePointer(Native Method) at…
user6006748
  • 303
  • 2
  • 3
  • 10
0
votes
1 answer

Testing tess4j and get UnsupportedClassVersionError

I want to test using tess4j in eclipse. After following the tutorial I still encounter the UnsupportedClassVersionError when run it. I am using jdk 1.6.0 and this error appears. java.lang.UnsupportedClassVersionError:…
sayaTanya
  • 13
  • 8
0
votes
0 answers

How to find confidence level of OCR text extracted using tesseract in java?

import java.io.File; import com.googlecode.tesseract.android.TessBaseAPI; public class ConfidenceLevelFinder { public static void main(String[] args) { TessBaseAPI baseApi=new TessBaseAPI(); …
0
votes
1 answer

Tesseract ocr performance is slow

I use wrapper tess4j for tesseract 3 to make OCR on cyrillic characters. Before I execute image pre-processing: skewed image, remove background and noise, adjust image quality and finaly get ROI for OCR. Image pre-processing takes 0.5-1 seconds. But…
Vladimir
  • 1
  • 1
0
votes
1 answer

Unable to build test project(tess4j) tesseract application

I have configured tess4j test application as http://tess4j.sourceforge.net/tutorial/. But when I run the project, it gives this error: Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't obtain updateLastError method for class…
user5954693
0
votes
0 answers

UnsatisfiedLinkError with TessAPI1 while using tess4j

I'm working on Mac OS, using tesseract to do the OCR. I installed tesseract with homebrew. The tesseract works well with command line, and the java program works well with the basic example of Tesseract.getInstance(). But since I want to get the…
Veronica
  • 11
  • 3
0
votes
2 answers

Tess4j OcrEngineMode CUBE ONLY : Invalid memory access

I want scan image (tif image) to get a number. When Tess4J is set with default engine, it often confuses 6 for 5, 0 for 9... I would like to try it with CUBE ONLY engine. This is myconfig file: tessedit_ocr_engine_mode 2 load_system_dawg F …
bancomat
  • 15
  • 6
0
votes
1 answer

How to perform OCR on an image containing euro symbol with Tess4J?

I have the following image I want to OCR: I'm using Tess4J for this and followed these instructions. This is what I'm trying: import java.io.File; import net.sourceforge.tess4j.Tesseract; import net.sourceforge.tess4j.ITesseract; import…
narzero
  • 2,199
  • 5
  • 40
  • 73
0
votes
0 answers

Tess4j api is not reading pdf file accurately

I am about to read pdf file with tess4j in java, it is working perfectly but unfortunately in my pdf, every thing is in table format and tess4j is reading all rows except following two rows are Currency ZAR and Amount 4.00, i don't know what is the…
Balaji
  • 151
  • 4
  • 15
0
votes
4 answers

text embeded image orientation detection using tesseract /tess4j OCR

i have a project to find a text embedded image angle of rotation and i am using Tess4j so how can i get correct orientation angle of image is there any option in Tess4j that can rotate an image in correct orientation... if i give an image as an…
rj27
  • 89
  • 1
  • 9
0
votes
1 answer

Tess4j on netbeans

good day, I am using Tess4j as a wrapper on java to implement Tesseract OCR. Followed closely to tutorials and guides provided but was returned with the following errors when compiled to scan a sample image: Exception in thread "main"…
kenAu89
  • 101
  • 1
  • 11
0
votes
1 answer

Training Tesseract - Failed Loading Trained Language

I try to train language for tesseract. I'm using Tess4J for OCR process. I use jTessBoxEditor and SerakTesseractTrainer for training operation. After I prepare my traindata, I put it at Tesseract/tessdata and Tess4j/tessdata folder. Then, I set new…
bodoroman
  • 278
  • 2
  • 16
0
votes
0 answers

Tess4J On Oracle Enterprise Linux -Native library (linux-x86-64/libtesseract.so) not found in resource path

I have problems during configuration and operation of the tess4j Oracle Enterprise Linux. I installed tesseract3.04 and leptonica 1.71 . Tesseract I installed that I download a .tar file unpacked and do ./configure make make install # tesseract…
0
votes
1 answer

JNA - C memory error crashes Java Program

I am using JNA in order to call C functions from Java. Sometimes the C functions are crashing and they are also making the java application to crash - an unwanted effect. If I run my program from the IDE I got the following message with exit…
user3452075
  • 411
  • 1
  • 6
  • 17