Appearance
双图旋转
识别双图旋转验证码。接口接收内圈图和外圈图,返回旋转角度或识别结果。
接口信息
| 项目 | 值 |
|---|---|
| 地址 | /api/rotate/double/rotate |
| 方法 | POST |
| Content-Type | application/json |
| 认证 | 需要 Bearer Token |
| 扣点 | 普通用户扣点,管理员不扣点 |
请求体
json
{
"inside_base64": "base64-image",
"outside_base64": "base64-image"
}| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
inside_base64 | string | 是 | 内圈图片 Base64 字符串 |
outside_base64 | string | 是 | 外圈图片 Base64 字符串 |
curl 示例
bash
curl -X POST "$BASE_URL/api/rotate/double/rotate" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"inside_base64\": \"$INSIDE_BASE64\",
\"outside_base64\": \"$OUTSIDE_BASE64\"
}"返回示例
json
{
"result": 124
}错误码
| 状态码 | 说明 |
|---|---|
401 | Token 无效或过期 |
402 | 余额不足 |
后端调用
python
Atc.Double_Rotate(
inside_base64=data.inside_base64,
outside_base64=data.outside_base64
)