12306-ocr:12306 验证码识别服务

时间:2021-05-03 14:37:11
【文件属性】:
文件名称:12306-ocr:12306 验证码识别服务
文件大小:1.02MB
文件格式:ZIP
更新时间:2021-05-03 14:37:11
Python 12306 验证码识别服务 使用 需要运行在 python 3.6 以上版本 1. 安装依赖 git clone https://github.com/pjialin/12306-ocr pip install -r requirements.txt 2. 配置程序 cp config.toml.example config.toml 3. 运行程序 python main.py 用于识别文字的模型文件较大,没有放在仓库中,第一次运行会自动进行联网下载,所以可能需要等待一会才能运行起来。 Docker 使用 docker run -d -p 8000:8000 pjialin/12306-ocr 启动后通过 http://IP:8000 进行访问 对接 Py12306 打开 py12306 目录下的 py12306/helpers/api.py 文件,找到 API_FREE_CODE_QC
【文件预览】:
12306-ocr-master
----main.py(90B)
----web.py(637B)
----Dockerfile(492B)
----LICENSE(11KB)
----ocr()
--------test.jpg(13KB)
--------image.model.h5(891KB)
--------ml_predict.py(3KB)
--------texts.txt(626B)
--------text.model.h5(353KB)
----requirements.txt(761B)
----.gitignore(64B)
----config.py(1KB)
----.dockerignore(4B)
----config.toml.example(35B)
----README.md(928B)

网友评论