pytesseract 進行中文識別問題

問題:pytesseract 中文識別:pytesseract.pytesseract.TesseractError: (1, ‘Tesseract Open Source OCR Engine v3.04.01 with Leptonica Error opening data file /usr/share/tesseract-ocr/tessdata/chi_sim.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your “tessdata” directory. Failed loading language ‘chi_sim’ Tesseract couldn’t load any languages! Could not initialize tesseract.’)

解決方案:
檢查是否安裝對應的中文庫

具體檢查支持的語料庫及其安裝,請參考:https://blog.csdn.net/magicianofcodes/article/details/79401622

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章