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
3
votes
1 answer

Code works on ide but not when running from .jar

Made this little program to teste some GUI and Tess4j. public static void main(String[] args) { JButton open = new JButton(); JFileChooser fc = new JFileChooser(); fc.setCurrentDirectory(new java.io.File("C:")); …
3
votes
1 answer

Tess4J Mac: NoClassDefFoundError

I'm trying to use Tess4J in my project. It doesn't include .dylib files for Mac, so I've built my own Tesseract and am using the .dylib from the Tesseract build. I'm able to load the native library with no issue, and I believe have the Tess4J…
dave_d
  • 159
  • 1
  • 9
3
votes
2 answers

Tesseract : Index out of bounds exceptions for OCR method

I am working on a Spring-MVC application in which I am using Tesseract for OCR. I am getting an Index out of bounds exception for the file I am passing. Any ideas? Error log : et.sourceforge.tess4j.TesseractException:…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
3
votes
0 answers

Invalid memory access Exception while extracting text using tes4j

I am extracting text from image pdf using Tes4j. There are two steps involved here: 1)convert pdf to image: PdfUtilities.convertPdf2Png(inputfilepath); This works without any issues. 2)extract text from image: try { if(imgName.endsWith(".png")){ …
3
votes
2 answers

Tesseract doesn't recognize Arabic characters

I'm working on an application that uses tesseract api to recognize plate numbers but in the plates there is characters in Arabic. Someone have an idea how to make this?
Sami Fakhfakh
  • 89
  • 2
  • 17
3
votes
1 answer

No input source set error exception Tess4J

I just downloaded Tess4J from http://tess4j.sourceforge.net/ and imported it in netbeans. Code is running but when i enter URL for image and try to convert it i'm getting an error. My code: public static void main(String[] args) { File imageFile…
Aleksandar Đokić
  • 2,118
  • 17
  • 35
3
votes
1 answer

Tess4j Tesseract vs Tesseract1

I am not 100% sure the difference about Tesseract and Tesseract1 object in the Java api package Tess4J, anyone can explain about it? I know Tesseract uses interface mapping, and Tesseract1 uses direct mapping. How this will change their…
RockTheStar
  • 650
  • 1
  • 8
  • 21
3
votes
1 answer

Bypassing Tesseract preProcessing

I am running a series of OCR on images using tess4j as a wrapper for tesseract from JAVA. The process of ocr is still taking a significant amount of time (even 5 seconds sometimes) and I am trying to speed it up. I am doing my own preprocessing and…
user3452075
  • 411
  • 1
  • 6
  • 17
3
votes
2 answers

Forcing Tesseract to match pattern (four digits in a row)

I'm trying to get Tesseract (using the Tess4J wrapper) to match only a specific pattern. The pattern is four digits in a row, which I think would be \d\d\d\d. Here is a VERY small subset of the image I'm feeding tesseract (the floorplans are…
user3426373
  • 31
  • 1
  • 3
3
votes
3 answers

Can not find the specified module. Tess4j using maven

Hi I have a problem using tess4j library with java. I´m using maven. Exception in thread "main" java.lang.UnsatisfiedLinkError: Can not find the specified module. I´m sure that the file setted in the path exist because the method exist returns…
Juan Camilo Mejia
  • 952
  • 3
  • 14
  • 28
2
votes
0 answers

ERROR [net.sourceforge.tess4j.util.PdfGsUtilities:convertPdf2Png(109)] (http-/139.162.55.129:8090-6) Unable to load library 'gs'

net.sourceforge.tess4j tess4j 4.3.0 I am using the above dependency in Maven. This is used in Java and eclipse. But now I want to run my…
sushma r
  • 21
  • 1
  • 3
2
votes
2 answers

Why can't I catch the TesseractException?

I am using Tess4j for using Tesseract-OCR technology and I have been using the following code: During testing I wanted to test the catch close so I was feeding wrong information to Tesseract, which should result in TesseractException. I managed to…
2
votes
0 answers

ERROR net.sourceforge.tess4j.Tesseract - null , while executing doOCR function

I am trying to capture the text of an image however I am getting a null pointer exception, here is the code I am using I have checked a few links and I think the problem is either with the Mac system or with 32/64 bit, currently, I am using a mac…
Sanat
  • 267
  • 1
  • 5
  • 16
2
votes
2 answers

Tesseract gives warning message

I am working with tess4j (4.3.1 version) so that I can convert image files to text file for preparing index for Lucene.It does its work but at the end gives an warning Warning: Parameter not found: enable_new_segsearch Here is my…
Subhendu Mahanta
  • 961
  • 1
  • 18
  • 44
2
votes
1 answer

RuntimeException when trying to use Tess4J in Java EE

Im trying to use Tess4J in Java EE (Payara server), is this possible and if so how? Exact Exception I'm getting: e = (net.sourceforge.tess4j.TesseractException) net.sourceforge.tess4j.TesseractException: java.lang.RuntimeException: Need to install…
Tinus Jackson
  • 3,397
  • 2
  • 25
  • 58
1
2
3
14 15