frs__DetectLiveByUrl
Detect whether a person in a video is live by comparing their actions to a specified sequence using a Huawei Cloud OBS video URL.
Instructions
[FRS] 动作活体检测是通过判断视频中的人物动作与传入动作列表是否一致来识别视频中人物是否为活体。如果有多张人脸出现,则选取最大的人脸进行判定。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"actions": "<actions>",
"project_id": "<project_id>",
"video_url": "<video_url>"
},
"name": "frs__DetectLiveByUrl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | 动作代码顺序列表,英文逗号(,)分隔。建议单动作,目前支持的动作有: | |
| video_url | Yes | 视频的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。 | |
| project_id | Yes | 项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。 | |
| action_time | No | 该参数为动作时间数组拼接的字符串,数组的长度和actions的数量一致,每一项代表了对应次序动作的起始时间和结束时间,单位为距视频开始的毫秒数。 | |
| nod_threshold | No | 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。 |