FAQ Database Discussion Community


Tesseract on Linux crashes Glassfish

java,linux,tesseract,tess4j
We are using Tess4J/Tesseract to perform OCR on a webapp. On Windows everyting works fine but when deployed on a Linux machine the program crashes, kills the glassfish process and outputs a dump file: hs_err_pidXXXXX.log. # # A fatal error has been detected by the Java Runtime Environment: # #...

NPE during concurrent thread access of a single tess4j instance

tesseract,tess4j
I am working with Tesseract 3.0.2 and using 1.4.1 tess4j..this is not working in a thread-safe manner, I get a NPE. I am using Grizzly/Jesery/Spring. @Service("textExtractorService") public class TextExtractorServiceImpl implements TextExtractorService { Logger LOGGER = Logger.getLogger(TextExtractorServiceImpl.class); private final Tesseract instance = Tesseract.getInstance(); // JNA Interface ... .. } ... ......

How to use user-words in Tesseract (Java)?

java,ocr,tesseract,tess4j,config-spec
I am using Tesseract for OCR purposes and I have added few additional words into "fin.user-words" (I would like to avoid creating a new word list and replacing tessdata/fin.word-dawg with it). Now, I succeeded doing it in command prompt: >tesseract image.png result -l fin TestConfig where TestConfig (Tesseract configuration file...

Next step in image preprocessing for OCR with Tesseract (tess4j)

java,image-processing,ocr,tesseract,tess4j
I've been trying to use Tesseract to identify some digits in a series of images and after scouring for advice I've made a number of improvements. So far I've attempted the following steps: Binarize the image at an appropriate threshold to pick out the numbers Restrict Tesseract to digits only...

Seven Segment Digital Data Recognition using Tessseract / Java

java,tesseract,image-recognition,tess4j,seven-segment-display
I am trying to recognize seven segment digital text from image using tess4J . My input is here I have made some normalization as follows 1 ] Image cropped . 2 ] Converted it into binary I wish to remove the jagged edges of text from image .How can i...