也许有人可以帮助我!当我运行以下代码时
导入pytesseract从pytesseract导入image_to_string从PIL导入图片导入PIL
file = Image.open('/usr/local/Cellar/tesseract/4.1.0/share/tessdata/cap.png')
we_will = pytesseract.image_to_string(file)
print(we_will)
输出的全部是:
Process finished with exit code 0
这没有帮助。我在做什么错?