11# Project Introduction
2- This project is based on CNN+LSTM +CTC to realize verification code identification.
2+ This project is based on CNN+BLSTM +CTC to realize verification code identification.
33This project is only for deployment models, If you need to train the model, please move to https://github.com/kerlomz/captcha_trainer
44
55# Informed
@@ -42,13 +42,41 @@ This project is only for deployment models, If you need to train the model, plea
4242 ` ` `
4343 python tornado_server.py
4444 ` ` `
45+ 4. Port: 19953
46+ ` ` `
47+ python sanic_server.py
48+ ` ` `
4549
46502. Windows
4751 Deploy (Windows):
4852 ` ` `
49- python flask_server .py
53+ python xxx_server .py
5054 ` ` `
51- Port: 19951
55+
56+ 3. Request
57+
58+ | Request URI | Content-Type | Payload Type | Method |
59+ | ----------- | ---------------- | -------- | -------- |
60+ | http://localhost:[Bind-port]/captcha/v1 | application/json | JSON | POST |
61+
62+ | Parameter | Required | Type | Description |
63+ | ---------- | ---- | ------ | ------------------------ |
64+ | image | Yes | String | Base64 encoding binary stream |
65+ | model_site | No | String | Site name, bindable in yaml configuration |
66+ | model_type | No | String | Category, bindable in yaml configuration |
67+
68+ The request is in JSON format, like: {" image" : " base64 encoded image binary stream" }
69+
70+ 4. Response
71+
72+ | Parameter Name | Type | Description |
73+ | ------- | ------ | ------------------ |
74+ | message | String | Identify results or error messages |
75+ | code | String | Status Code |
76+ | success | String | Whether to request success |
77+
78+ The return is in JSON format, like: {" message" : " xxxx" , " code" : 0, " success" : true}
79+
5280
5381# # 2. G-RPC Version
5482Deploy:
@@ -68,6 +96,7 @@ python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. ./grpc.proto
6896 - grpc_server.py
6997 - flask_server.py
7098 - tornado_server.py
99+ - sanic_server.py
71100 - demo.py
72101 - model
73102 - model-1.yaml
@@ -93,6 +122,6 @@ python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. ./grpc.proto
93122This project use SATA License (Star And Thank Author License), so you have to star this project before using. Read the license carefully.
94123
95124# Introduction
96- https://www.jianshu.com/p/fccd596ef023
125+ https://www.jianshu.com/p/80ef04b16efc
97126
98127
0 commit comments