Giter VIP home page Giter VIP logo

captcha's Introduction

12306 验证码自动识别

基础环境

  • JDK8
  • maven
  • python3

python 依赖安装

Mac 或者 Linux 用户使用虚拟环境:

cd captcha/python

python3 -m venv venv

source venv/bin/activate

sudo pip install -r requirements.txt

Windows 用户使用本地当前环境:

cd captcha/python

sudo pip install -r requirements.txt

如果上面依赖下载太慢,可以使用 pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple 下载。

验证码识别测试

Mac 或者 Linux 用户使用虚拟环境:

cd captcha/python

source venv/bin/activate

python3 main.py ../temp/index.jpg

Windows 用户使用本地当前环境:

cd captcha/python


python main.py ../temp/index.jpg

在线调用

我自己部署了一套,可以测试一把,不要暴力使用啊。。。

Api:http://captcha.qianxunclub.com/api/captcha
Method:POST
Content-Type:application/json
参数:image 入参为 base64图片字符串

curl -H "Content-Type: application/json" -X POST  --data '{"image":"base64图片"}' http://captcha.qianxunclub.com/api/captcha

captcha's People

Contributors

qianxunclub avatar

Watchers

 avatar

Forkers

p-

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.