I'd like to create a simple WPF program for OCR scanning with tesseract in which the user can choose the language/s to scan with.² Now for some reason tesseract expects there to be a tessdata folder with the language files directly in it instead of the language subfolders.
using (var engine = new TesseractEngine(@"./tessdata", "deu", EngineMode.Default))
doesn't work if the deu files aren't located directly in the tessdata folder - neither does it work when using @"./tessdata/deu"
.
It only works when having the language file located directly in the tessdata folder (also in the project-structure).
How to properly make use of all available languages?
²Actually, if possible later on I'd like to auto-detect the language in images - e.g. by scanning each image with each language and checking which language had the best result. If you have any idea on how this could be done please let me know.