【发布时间】:2021-11-01 13:46:22
【问题描述】:
Binary image B2 Binary image Y2
我认为这些图像非常简单明了。 pytesseract 仍然不起作用。我真的很想知道为什么。
这是我的代码
from pytesseract import pytesseract as tesseract
import cv2 as cv
binary = cv.imread(filepath)
lang = 'eng'
config = 'tessedit_char_whitelist=RGB123'
print(tesseract.image_to_string(binary, lang=lang, config=config))
输出只是空白字符串。
【问题讨论】:
-
如果您旋转图像然后尝试在旋转后的图像上运行 tesseract,问题是否仍然存在?
标签: python ocr tesseract python-tesseract