zl程序教程

您现在的位置是:首页 >  后端

当前栏目

python pytesser tesseract-ocr 验证码识别

Python识别 验证码 OCR Tesseract
2023-09-14 09:16:05 时间

1. 只能识别简单图片

# coding:utf-8
# coding:cp936
import os
os.chdir(r'C:\LF\Python27\Lib\site-packages\pytesser')
from pytesser import *
from PIL import Image

im =Image.open(r'C:\LF\Python27\Lib\site-packages\pytesser\fnord.tif')
print image_to_string(im)

参考:
1.Win7下安装Python图像处理库PIL、pytesser、tesseract进行验证码识别