Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhaipro/easy12306
使用机器学习算法完成对12306验证码的自动识别
https://github.com/zhaipro/easy12306
12306 captcha deep-learning mathematics
Last synced: about 21 hours ago
JSON representation
使用机器学习算法完成对12306验证码的自动识别
- Host: GitHub
- URL: https://github.com/zhaipro/easy12306
- Owner: zhaipro
- License: artistic-2.0
- Created: 2015-03-23T09:37:12.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-03-04T10:20:41.000Z (almost 4 years ago)
- Last Synced: 2024-10-29T17:40:03.513Z (3 months ago)
- Topics: 12306, captcha, deep-learning, mathematics
- Language: Python
- Homepage:
- Size: 229 KB
- Stars: 2,891
- Watchers: 74
- Forks: 738
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# easy12306
两个必要的数据集:
1. 文字识别,model.h5
2. 图片识别,12306.image.model.h5识别器数据的下载地址:
1. [百度网盘](https://pan.baidu.com/s/1OsBIBM4rl8EnpZt7VYiD9g)
1. https://drive.google.com/drive/folders/1GDCQyaHr36c7y1H-19pOKjc_EdAI1wn0`python3 main.py `
我把设计思路写在维基中了:https://github.com/zhaipro/easy12306/wiki
### 如何?
![2](https://user-images.githubusercontent.com/8620842/51320752-d6f2cc00-1a9b-11e9-9d2d-7d1e25ddadc5.jpg)
```
~$ python3 main.py 2.jpg 2> /dev/null
电子秤
风铃 # 要找的是以上两样东西
0 0 电子秤 # 第一行第一列就是电子秤
0 1 绿豆
0 2 蒸笼
0 3 蒸笼
1 0 风铃
1 1 电子秤
1 2 网球拍
1 3 网球拍
```识别前所未见的图片
![8](https://user-images.githubusercontent.com/8620842/51799645-a01c7300-225e-11e9-8214-296773112484.jpg)
具体的编号:[texts.txt](./texts.txt)
```
~$ python3 mlearn_for_image.py 8.jpg
[0.8991613] # 可信度
[0] # 0 表示的就是打字机
```### 什么?
只是想拿来识别12306的验证码?可以回顾[3.0.0](https://github.com/zhaipro/easy12306/tree/3.0.0),使用相似图搜索。