Appearance
文字顺序点击
处理按顺序点击文字的验证码。接口接收顺序提示图和目标图,返回需要点击的坐标顺序。
接口信息
| 项目 | 值 |
|---|---|
| 地址 | /api/detection/text/order |
| 方法 | POST |
| Content-Type | application/json |
| 认证 | 需要 Bearer Token |
| 扣点 | 普通用户扣点,管理员不扣点 |
请求体
json
{
"order_img_base64": "base64-image",
"target_img_base64": "base64-image"
}| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
order_img_base64 | string | 是 | 顺序提示图片 Base64 字符串 |
target_img_base64 | string | 是 | 待点击目标图片 Base64 字符串 |
curl 示例
bash
curl -X POST "$BASE_URL/api/detection/text/order" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"order_img_base64\": \"$ORDER_IMG_BASE64\",
\"target_img_base64\": \"$TARGET_IMG_BASE64\"
}"返回示例
json
{
"result": [[72, 118], [190, 140]]
}错误码
| 状态码 | 说明 |
|---|---|
401 | Token 无效或过期 |
402 | 余额不足 |
后端调用
python
Atc.ClickText_Order(
order_img_base64=data.order_img_base64,
target_img_base64=data.target_img_base64
)