python - 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
解决方案
推荐阅读
- git - Git Flow:如何删除功能
- ios - 从具有复杂类型和 DocumentReferences 的 Firebase 文档创建对象
- ruby-on-rails - 在将我的 Rails 版本从 Heroku 的 6.1.3 更改为 6.0.3.5 之后。运行 Rails S 后出现运行时错误
- flutter - 如何在对话框中添加图像?
- mongodb - Mongodb 聚合失败:“FieldPath 字段名称可能不以'$'开头。”
- c# - 在覆盖 GetHashCode() 时,是否还应考虑基类的 HashCode?
- rust - Rust 将包含通用特征的单个特征框起来
- android - 如何动态地将依赖项添加到buildscript?
- python - While 循环作为与完成的作业数相关的成绩计算器
- python - excel中值范围的相关性