TesseractError: (1, ‘Error opening data file D:\\Tesseract-OCR/tessdata/chi_sim.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your “tessdata” directory. Failed loading language \’chi_sim\’ Tesseract couldn\’t load any languages! Could not initialize tesseract.’)
1.确认是否设置系统环境变量
path: …;D:\Tesseract-OCR;D:\Tesseract-OCR\testdata;
TESSDATA_PREFIX:D:\Tesseract-OCR\testdata
2.确认是否安装chi_sim
没有的直接下载即可
https://github.com/tesseract-ocr/tessdata