pytesseract中的数字识别

时间:2020-09-13 14:11:09

标签: python python-tesseract

我试图识别pytesseract中的数字。但是只有像“ x0c”这样的奇怪字符出来了。图片尺寸约为80x80,是因为尺寸太小吗?是编程问题还是图书馆问题无法解决?

img: enter image description here

我尝试:

1。

pytesseract.image_to_string(img)
pytesseract.image_to_string(img, lang='eng', config='--psm 6')

3。使用阈值 enter image description here

但是结果是一样的。我应该怎么做?帮我。( 作为参考,我使用opencv将图像转换为灰度。)

0 个答案:

没有答案