同步操作将从 kerlomz/captcha_platform 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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_site | No | String | Site name, bindable in yaml configuration |
model_type | No | String | Category, 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
- 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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。