Reputation: 23
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
Reputation: 8345
You can specify combinations, such as:
instance.setLanguage("eng+spa");
See documentation.
Upvotes: 4