Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 binarization of the image and it is not necessary for tesseract to do the otsu binarization.

I have read a tutorial for IOS that allows skipping the graphical processing part , but i can't find anything using tess4j.

The turial here: https://github.com/gali8/Tesseract-OCR-iOS/wiki/Tips-for-Improving-OCR-Results -
"... if you've already performed your own pre-processing/thresholding [...] you will probably want to bypass the internal Tesseract thresholding step. "

Does anybody know how I could use tess4j (from JAVA) in a way that would skip the otsu binarization?

like image 536
user3452075 Avatar asked Jul 28 '26 00:07

user3452075


1 Answers

Check tesseract-ocr parameters list for any settings applicable. But I read that if you send in a binarized image, Tesseract will skip the thresholding on the image (source).

like image 152
nguyenq Avatar answered Jul 29 '26 18:07

nguyenq



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!