print(tesserocr.file_to_text("1.png"))
报错Failed to init API, possibly an invalid tessdata path: C:\Users\Administrator\venv\py3spider\
需要将tessdata文件夹 放到C:\Users\Administrator\venv\py3spider\Scripts目录 即报错目录的Scripts下面
原文地址:https://www.cnblogs.com/Ychao/p/9306500.html
时间: 2024-08-02 06:14:38