使用tesserocr.file_to_text("path")報錯Failed to init API, possibly an invalid tessdata path: C:\'

在配置tessdata時出現不少問題,上網查閱了不少的博客,終於將問題解決了,如今整理以下: 在安裝完tesserocr後運行以下代碼:python import tesserocr from PIL import Image image = Image.open(r'C:\Users\AI\Desktop\image.PNG') print(tesserocr.image_to_text(ima
相關文章
相關標籤/搜索