{"id":13488497,"url":"https://github.com/zhaipro/easy12306","last_synced_at":"2025-05-15T07:07:18.539Z","repository":{"id":29191763,"uuid":"32722849","full_name":"zhaipro/easy12306","owner":"zhaipro","description":"使用机器学习算法完成对12306验证码的自动识别","archived":false,"fork":false,"pushed_at":"2021-03-04T10:20:41.000Z","size":235,"stargazers_count":2900,"open_issues_count":9,"forks_count":738,"subscribers_count":73,"default_branch":"master","last_synced_at":"2025-04-14T13:01:30.170Z","etag":null,"topics":["12306","captcha","deep-learning","mathematics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhaipro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-23T09:37:12.000Z","updated_at":"2025-04-12T06:24:14.000Z","dependencies_parsed_at":"2022-08-17T19:40:46.820Z","dependency_job_id":null,"html_url":"https://github.com/zhaipro/easy12306","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaipro%2Feasy12306","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaipro%2Feasy12306/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaipro%2Feasy12306/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaipro%2Feasy12306/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhaipro","download_url":"https://codeload.github.com/zhaipro/easy12306/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292042,"owners_count":22046426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["12306","captcha","deep-learning","mathematics"],"created_at":"2024-07-31T18:01:16.938Z","updated_at":"2025-05-15T07:07:13.526Z","avatar_url":"https://github.com/zhaipro.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"﻿# easy12306\n\n两个必要的数据集：\n\n1. 文字识别，model.h5\n2. 图片识别，12306.image.model.h5\n\n识别器数据的下载地址：\n\n1. [百度网盘](https://pan.baidu.com/s/1OsBIBM4rl8EnpZt7VYiD9g)\n1. https://drive.google.com/drive/folders/1GDCQyaHr36c7y1H-19pOKjc_EdAI1wn0\n\n`python3 main.py \u003cimg.jpg\u003e`\n\n我把设计思路写在维基中了：https://github.com/zhaipro/easy12306/wiki\n\n### 如何？\n\n![2](https://user-images.githubusercontent.com/8620842/51320752-d6f2cc00-1a9b-11e9-9d2d-7d1e25ddadc5.jpg)\n\n```\n~$ python3 main.py 2.jpg 2\u003e /dev/null\n电子秤\n风铃        # 要找的是以上两样东西\n0 0 电子秤  # 第一行第一列就是电子秤\n0 1 绿豆\n0 2 蒸笼\n0 3 蒸笼\n1 0 风铃\n1 1 电子秤\n1 2 网球拍\n1 3 网球拍\n```\n\n识别前所未见的图片\n\n![8](https://user-images.githubusercontent.com/8620842/51799645-a01c7300-225e-11e9-8214-296773112484.jpg)\n\n具体的编号：[texts.txt](./texts.txt)\n\n```\n~$ python3 mlearn_for_image.py 8.jpg\n[0.8991613]  # 可信度\n[0]          # 0 表示的就是打字机\n```\n\n### 什么？\n\n只是想拿来识别12306的验证码？可以回顾[3.0.0](https://github.com/zhaipro/easy12306/tree/3.0.0)，使用相似图搜索。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaipro%2Feasy12306","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhaipro%2Feasy12306","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaipro%2Feasy12306/lists"}