首页 > 解决方案 > Python 脚本,正方体。没有错误但没有输出

问题描述

我正在尝试使用tesseract从图像中读取文本,我已经tesseract使用 home brew 安装但我没有得到任何输出。这是我的代码;

import pytesseract
from PIL import Image    
    
value = Image.open('/Users/director/Desktop/databoy/easytt.jpeg')
text = pytesseract.image_to_string(value, lang="eng")
print(text)

我没有收到任何错误,也没有打印出任何内容,我只是得到: Process finished with exit code 0

这是我正在使用的图像

标签: pythonimage-processingocrpython-tesseract

解决方案


推荐阅读