frs__SearchFaceByBase64
Searches an existing face library using a Base64-encoded image and returns similar matches with confidence scores, plus optional top-N, threshold, filter, and sort controls.
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": {
"face_set_name": "<face_set_name>",
"image_base64": "<image_base64>",
"project_id": "<project_id>"
},
"name": "frs__SearchFaceByBase64"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | 支持字段排序,参考[sort语法](https://support.huaweicloud.com/api-face/face_02_0013.html)。 | |
| top_n | No | 返回查询到的最相似的N张人脸,N默认为10。 | |
| filter | No | 过滤条件,参考[filter语法](https://support.huaweicloud.com/api-face/face_02_0014.html)。 | |
| threshold | No | 人脸相似度阈值,低于这个阈值则不返回,取值范围0~1,一般情况下建议取值0.93,默认为0。 | |
| project_id | Yes | 项目ID,获取方法请参见[获取项目ID/账号租户名/AK/SK](https://support.huaweicloud.com/api-face/face_02_0056.html)。 | |
| image_base64 | Yes | 图像数据,Base64编码,要求: | |
| face_set_name | Yes | 人脸库名称。 | |
| return_fields | No | 指定返回的自定义字段。 |