python-tesseract - pytesseract 无法识别图片中的数字。也许数字太接近了
问题描述
我正在尝试使用 pytesseract 从图像中识别数字: 在此处输入图像描述
以上均不返回数字。但是数字太接近可能无法识别。
关于如何让 tesseract 识别它,你有什么技巧吗?
from PIL import Image
import pytesseract
img = Image.open('123.jpg')
text = pytesseract.image_to_string(img, config='outputbase digits')
print(text)
解决方案
推荐阅读
- javascript - 从 markdown frontmatter 变量渲染列表
- spring-boot - Spring Boot OAuth2 资源服务器:库如何在没有公钥的情况下验证 JWT 令牌?
- php - 用树枝比较两个日期
- javascript - 敲回车时如何改变打字方向?
- ios - 启用 isEditing 时,如何使 UITableViewCell 粘在底部?
- string - 有什么简单的方法可以用 CString 中的空格替换 %20 吗?
- python - 卡在字典中显示值
- typescript - 打字稿声明文件不遵循它自己的导入
- javascript - 使用 Java 和 NodeJS 验证字符串
- java - 无法解析符号“项目”