Uma Karambelkar
Uma Karambelkar

Reputation: 23

How to access multiple .traineddata files in Tess4j?

I am using Tess4j with java and I need to access more than one .traineddata files at a time. I have trained the tesseract to create my own .traineddata files and I have kept them along with default .traineddata file which comes with Tess4j package. By default eng.traineddata file is accessed while performing OCR. How can I access multiple .traineddata files at a time with Tess4j?

Upvotes: 2

Views: 2626

Answers (1)

nguyenq
nguyenq

Reputation: 8345

You can specify combinations, such as:

instance.setLanguage("eng+spa");

See documentation.

Upvotes: 4

Related Questions