Giter VIP home page Giter VIP logo

12306-ocr's Introduction

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

用于识别文字的模型文件较大,没有放在仓库中,第一次运行会自动进行联网下载,所以可能需要等待一会才能运行起来。

对接 Py12306

打开 py12306 目录下的 py12306/helpers/api.py 文件,找到 API_FREE_CODE_QCR_API= 的位置,并替换成当前 ocr 服务的接口地址,如:

API_FREE_CODE_QCR_API = 'http://127.0.0.1:8082/check/'

Thanks

所用的模型和算法均来自 https://github.com/zhaipro/easy12306 十分感谢!

License

Apache License.

12306-ocr's People

Contributors

pjialin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.