我在使用pytesser进行OCR时遇到了这个错误:[WinError 2] The system cannot find the file specified。以下是我的代码片段。
否则,当我使用PIL改变图像大小时,就不会出现这个错误。
from PIL import Image
from pytesseract import *
image = Image.open('pranav.jpg')
print (image_to_string(image))****
否则,当我使用PIL改变图像大小时,就不会出现这个错误。