This project is based on CNN+BLSTM+CTC to realize verification code identification. This project is only for deployment models, If you need to train the model, please move to https://github.com/kerlomz/captcha_trainer
pip3 install virtualenv
virtualenv -p /usr/bin/python3 venv # venv is the name of the virtual environment.
cd venv/ # venv is the name of the virtual environment.
source bin/activate # to activate the current virtual environment.
cd captcha_platform # captcha_platform is the project path.
pip install -r requirements.txt
Linux Deploy (Linux/Mac):
pip install gunicorn
gunicorn -c deploy.conf.py flask_server:app
python flask_server.py
python tornado_server.py
python sanic_server.py
Windows Deploy (Windows):
python xxx_server.py
Request
Request URI | Content-Type | Payload Type | Method |
---|---|---|---|
http://localhost:[Bind-port]/captcha/v1 | application/json | JSON | POST |
Parameter | Required | Type | Description |
---|---|---|---|
image | Yes | String | Base64 encoding binary stream |
model_name | No | String | ModelName, bindable in yaml configuration |
The request is in JSON format, like: {"image": "base64 encoded image binary stream"}
Response
Parameter Name | Type | Description |
---|---|---|
message | String | Identify results or error messages |
code | String | Status Code |
success | String | Whether to request success |
The return is in JSON format, like: {"message": "xxxx", "code": 0, "success": true}
Deploy:
python3 grpc_server.py
Port: 50054
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. ./grpc.proto
- captcha_platform
- grpc_server.py
- flask_server.py
- tornado_server.py
- sanic_server.py
- demo.py
- config.yaml
- model
- model-1.yaml
- model-2.yaml
- ...
- graph
- Model-1.pb
- ...
This project use SATA License (Star And Thank Author License), so you have to star this project before using. Read the license carefully.
https://www.jianshu.com/p/80ef04b16efc
Thank you very much for your support of my project.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型