frs__CompareFaceByUrl
Compare two faces from Huawei Cloud OBS image URLs to determine whether they are the same person and return a confidence score.
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": {
"image1_url": "<image1_url>",
"image2_url": "<image2_url>",
"project_id": "<project_id>"
},
"name": "frs__CompareFaceByUrl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image1_url | Yes | 图片的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/api-face/face_02_0006.html)。与image1_file、image1_base64三选一 | |
| image2_url | Yes | 图片的URL路径,目前仅支持华为云上OBS的URL,且人脸识别服务有权限读取该OBS桶的数据。开通读取权限的操作请参见[服务授权](https://support.huaweicloud.com/api-face/face_02_0006.html)。与image2_file、image2_base64三选一 | |
| project_id | Yes | 项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。 |