We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码如下: from cnocr import CnOcr print('begin') img_fp = './img/战斗-进入游戏.png' ocr = CnOcr() # 所有参数都使用默认值 print('ocr') #out = ocr.ocr(img_fp) out = ocr.ocr_for_single_line(img_fp) print(out)
结果: Exception has occurred: FileNotFoundError Error loading image: ./img/战斗-进入游戏.png File "E:\mywork\国王指意\cnocrtest.py", line 8, in out = ocr.ocr_for_single_line(img_fp) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: Error loading image: ./img/战斗-进入游戏.png
换成英文文件名就可以
The text was updated successfully, but these errors were encountered:
用英文
Sorry, something went wrong.
No branches or pull requests
代码如下:
from cnocr import CnOcr
print('begin')
img_fp = './img/战斗-进入游戏.png'
ocr = CnOcr() # 所有参数都使用默认值
print('ocr')
#out = ocr.ocr(img_fp)
out = ocr.ocr_for_single_line(img_fp)
print(out)
结果:
Exception has occurred: FileNotFoundError
Error loading image: ./img/战斗-进入游戏.png
File "E:\mywork\国王指意\cnocrtest.py", line 8, in
out = ocr.ocr_for_single_line(img_fp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: Error loading image: ./img/战斗-进入游戏.png
换成英文文件名就可以
The text was updated successfully, but these errors were encountered: