I am using 'tess4j' api to get the text from a .jpg image. The 'TessData' folder is packaged in the jar files. I want to include custom fonts and create my own 'TessData' folder, is there a way we can give 'TessData' location during run time.
I used the below method and it didn't pick up the TessData from custom location.
TessAPI1.TessBaseAPIInit3(handle, "C:\1. tesseract folder\bodoni mt\TrainData", lang);
Please let me know if we can do so.