From 8e1347293ca4ee18d32b11eb4d43c62fb86547a3 Mon Sep 17 00:00:00 2001 From: Zhang-Siyang Date: Sun, 13 Aug 2017 20:36:25 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E4=B8=8A=E7=9A=84?= =?UTF-8?q?=E5=B0=8F=E6=94=B9=E5=8A=A8=E5=92=8C=E7=97=85=E5=8F=A5=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e7ead31..c52f531 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,16 @@ -# - -一个普通的验证码识别程序 +# 一个普通的验证码识别程序 +- 环境:python3 -依赖:pillow,requests +依赖:pillow, requests -使用: -首先应该修改python_getpic.py文件中相关的路径名(下载验证码存放路径),因为本人用的是自己电脑的路径。 +## 使用: -运行然运行python_recognize.py +首先应该修改 python_getpic.py 文件中相关的路径名(下载验证码存放路径),因为本人用的是自己电脑的路径。 -十分简单,150行代码配合注释应该也不算难理解 +运行 python_getpic.py 一次,然后运行 python_recognize.py + +十分简单,150 行代码配合注释应该也不算难理解 我的识别结果正确率大概在97%左右。 From 57bc1e9adfb5b29ad72c9e5d680de04ce52d00fa Mon Sep 17 00:00:00 2001 From: Zhang-Siyang Date: Sun, 13 Aug 2017 20:37:55 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84=E9=83=A8=E5=88=86=EF=BC=88=E6=A8=AA=E6=9D=A0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index c52f531..0c5a29a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ # 一个普通的验证码识别程序 -- 环境:python3 From d9fa37f27b6ab5dd8468e15e20716f8e1923c5da Mon Sep 17 00:00:00 2001 From: Zhang-Siyang Date: Sun, 13 Aug 2017 20:42:44 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=EF=BC=8C=E4=BB=A5=E9=98=B2=E6=9C=89=E6=97=B6?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E7=9A=84=E9=94=99=E8=AF=AF=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E4=BA=A4=E4=BA=92=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python_getpic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_getpic.py b/python_getpic.py index 14644c6..bf5ff34 100644 --- a/python_getpic.py +++ b/python_getpic.py @@ -1,3 +1,4 @@ +#coding=utf-8 import requests import os @@ -11,10 +12,9 @@ os.makedirs(path) for i in range(0,num): - print("下载第"+str(i)+"张验证码") + print("下载第 "+str(i)+" 张验证码") filePath=path+str(i)+'.jpg' #这个地址下可以下载到普通的验证码 r=requests.get('http://jw.hrbeu.edu.cn/ACTIONVALIDATERANDOMPICTURE.APPPROCESS') with open(filePath,'bw') as f: f.write(r.content) - From ec8db101f92d11544277166b144717f3dea9df2e Mon Sep 17 00:00:00 2001 From: Zhang-Siyang Date: Sun, 13 Aug 2017 20:43:32 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=EF=BC=8C=E4=BB=A5=E9=98=B2=E6=9C=89=E6=97=B6?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python_recognize.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python_recognize.py b/python_recognize.py index ea144b4..dd6f730 100644 --- a/python_recognize.py +++ b/python_recognize.py @@ -1,3 +1,4 @@ +#coding=utf-8 from PIL import Image import traceback import python_getpic