如何识别此图像Python pytesseract?

时间:2019-11-27 00:30:58

标签: python ocr captcha python-tesseract opencv-python

我想使用python识别此图像(这是网站中使用的验证码),但没有显示任何内容

我使用的代码如下:

from PIL import Image
import pytesseract
from pytesseract import image_to_string
pytesseract.pytesseract.tesseract_cmd=r"C:/Program Files/Tesseract-OCR/tesseract.exe"
img=Image.open('C:/Users/SAM/Desktop/b.gif')
text=image_to_string(img)
print(text)

enter image description here

0 个答案:

没有答案
相关问题