Error opening chinese data file
Created by: bclyc
I got this error:
TesseractError: (1, 'Error opening data file /usr/workspace/tesseract/chi-sim.traineddata\nPlease make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.\nFailed loading language 'chi-sim'\nTesseract couldn't load any languages!\nCould not initialize tesseract.\n')
Then I tried eng, fra traineddata file and all went well.
And it took me a long time to find out that it was the naming problem. Atfer I changed the filename from "chi-sim.traineddata" to "chi.traineddata" and changed them in programs, all went ok.I guess it's because pyocr have problem reading data file with "-" in its name. However official tesseract doesn't have this issue.
Please fix this, thank you!