The samples on Internet seems to work with Java only. So it can be used in Mendix. Don’t forget the trained data file and set the the Tesseract datapath to the Mendix resource folder with the trained data. Add the dependencies but watch the already available JARs in Mendix and avoid the SLF4j which is already included in Mendix.