---
updatedAt: 2026-05-31T07:54:56.000Z
agentTools:
  projectIndex: https://arctos.readme.io/llms.txt
---

# 人臉辨識

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "arctos OpenAPI"
  },
  "servers": [
    {
      "url": "https://www-sit.arctos.tw/api/v2"
    },
    {
      "url": "https://www-sit.arctos.tw/api/mock-v2"
    },
    {
      "url": "https://api-healthplus-sit.arctos.tw/api/v2"
    },
    {
      "url": "https://ctbc-sit.arctos.tw/api/v2"
    }
  ],
  "paths": {
    "/face/liveness/do_add": {
      "post": {
        "summary": "人臉辨識",
        "tags": [
          "FACE"
        ],
        "description": "",
        "operationId": "post_facelivenessdo_add",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "examples": {
                  "New Example": {
                    "summary": "New Example",
                    "value": {
                      "status": 1,
                      "message": "人臉辨識成功"
                    }
                  },
                  "New Example 1": {
                    "summary": "New Example 1",
                    "value": {
                      "status": 0,
                      "message": "人臉辨識失敗: Liveness check failed with reasons.: The liveness score is below the given threshold. The detected face is determined as a spoof."
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "status": {
                      "type": "number",
                      "description": "狀態"
                    },
                    "message": {
                      "type": "string",
                      "description": "資訊"
                    }
                  },
                  "type": "object",
                  "required": [
                    "status",
                    "message"
                  ]
                }
              }
            }
          }
        },
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "faceimg": {
                    "type": "string",
                    "description": "人臉照片"
                  },
                  "provider": {
                    "type": "string",
                    "description": "供應商"
                  },
                  "account": {
                    "type": "string",
                    "description": "受測者帳號"
                  },
                  "task_num": {
                    "type": "string",
                    "description": "案件編號"
                  },
                  "step": {
                    "type": "string",
                    "description": "動作執行的時段(視訊前、中、後)",
                    "enum": [
                      "before",
                      "during",
                      "after"
                    ],
                    "default": "during"
                  }
                },
                "type": "object",
                "required": [
                  "faceimg"
                ]
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}
```