betpunch_3x3_rotate

注意!
此任务不需要使用代理服务器。
请求必须包含九张图片。图片必须按以下顺序提供。

请求参数
重要提示:在创建任务之前请直接获取 base64 图片,以避免在解题过程中出现错误(参见章节 如何获取 base64)。
type<string>requiredComplexImageTask
class<string>requiredrecognition
imagesBase64<array>requiredbase64 编码格式的图片数组。
Task(在 metadata 中)<string>required任务名称:betpunch_3x3_rotate
创建任务方法
POST
https://api.capmonster.cloud/createTask
请求
{
"clientKey": "API_KEY",
"task": {
"type": "ComplexImageTask",
"class": "recognition",
"imagesBase64": [
"{image_1_Base64}",
"{image_2_Base64}",
"{image_3_Base64}",
"{image_4_Base64}",
"{image_5_Base64}",
"{image_6_Base64}",
"{image_7_Base64}",
"{image_8_Base64}",
"{image_9_Base64}"
],
"metadata": {
"Task": "betpunch_3x3_rotate"
}
}
}
响应
{
"errorId":0,
"taskId":407533072
}
获取任务结果方法
POST
https://api.capmonster.cloud/getTaskResult
请求
{
"clientKey":"API_KEY",
"taskId": 407533072
}
响应
"answer":[X,X,X,X,X,X,X,X,X],其中 X 为每张图片对应的整数值(1 到 4)。
4 表示该图片无需旋转;1–3 表示需要逆时针旋转的次数。
{
"errorId":0,
"status":"ready",
"errorCode":null,
"errorDescription":null,
"solution":
{
"answer":[4,4,4,4,4,3,1,2,2],
"metadata":{"AnswerType":"NumericArray"}
}
}
如何获取 Base64
页面中的图片可以以 URL 形式存在,也可以已经被编码为 Base64 格式。要找到所需的值,请在验证码图片上右键,选择 检查(Inspect),然后仔细查看 Elements(元素) 面板或网络请求 —— 在那里你可以找到图片 URL 或已编码的内容。
- 在浏览器中打开显示验证码的网站。
- 右键点击验证码元素并选择 检查(Inspect)。

