# AwsWafClassification

识别 AWS WAF 视觉九宫格（`gridcaptcha`），选出与目标同类的格子。

## 任务类型

`AwsWafClassification`

## 处理方式

异步 + 轮询 `/getTaskResult`

## 参数

| Field | Type | Required | Notes |
|---|---|---|---|
| `type` | string | yes | `AwsWafClassification` |
| `images` | string[] | yes | `/problem` 返回的 `assets.images` 9 张小图，base64，按原顺序；也接受单张 3×3 整图，按宽高等分 |
| `question` | string | yes | `aws:grid:<target>`，如 `aws:grid:bag`；直接写 `bag` 也行 |
| `websiteURL` | string | no | 兼容 CapSolver 保留，不参与识别 |

支持的目标：`bag`、`bed`、`bucket`、`chair`、`clock`、`curtain`、`hat`。

## 最小请求

```json
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AwsWafClassification",
    "images": [
      "BASE64_TILE_0",
      "...",
      "BASE64_TILE_8"
    ],
    "question": "aws:grid:bag"
  }
}
```

## 成功 solution

```json
{
  "objects": [1, 2, 5, 6, 8]
}
```

## 典型失败

`ERROR_CAPTCHA_UNSOLVABLE`, `ERROR_BAD_REQUEST`, `ERROR_TASK_NOT_SUPPORTED`

## 实现注意

`objects` 为 0–8 行优先下标，左上角为 0，直接作为 `/verify` 的 `client_solution` 提交。目标不在支持列表内时返回 `ERROR_CAPTCHA_UNSOLVABLE`、不计费，重取一道题即可。

Source: https://kaptra.ai/zh/docs/task-types/aws-waf-classification
