【发布时间】:2021-01-24 23:28:54
【问题描述】:
我正在制作一个简单的程序来使用 python 和 pytesseract 检测图像中的数字,但情况是它总是返回我♀,我正在分析这样的图像:
我读取数字的代码如下:
import pytesseract
from pytesseract import (
Output,
TesseractError,
TesseractNotFoundError,
TSVNotSupported,
get_tesseract_version,
image_to_boxes,
image_to_data,
image_to_osd,
image_to_pdf_or_hocr,
image_to_string,
run_and_get_output
)
def analizar_resultado(path):
image = cv2.imread(path, 1)
text = pytesseract.image_to_string(image, config = 'digits')
print('texto detectado:', text)
但我无法让它为我工作,我已经尝试了更多质量更好的此类图像和其他图像,但我无法获得任何数字,我该如何解决这个问题?非常感谢
【问题讨论】:
-
想要改进 Tesseract 文本识别? Goggle for tesseract 提高识别率
-
我只想检测数字,但你对谷歌的 tesseract 是什么意思?谢谢
-
搜索 Tesseract 提高识别率
-
你现在还有什么我可以尝试的吗?其他ocr或类似的东西?谢谢
-
在 StackOverflow 上请求库是题外话。
标签: python artificial-intelligence text-processing python-tesseract text-recognition