## 身份验证结果
人脸注册字段
|JSON字段|类型|说明|
| --- | --- | --- | --- |
|sst|String|业务类型,注册业务为enroll|
|ssub|String|子业务类型,人脸业务为ifr|
|ret|int|返回值,0为请求成功,其他为请求失败|
|suc|int|本次注册已成功的训练次数|
|rgn|int|本次注册需要的训练次数|
|fid|String|人脸模型id (当前无需关注)|
人脸注册结果示例:
~~~
{
"ret": 0,
"suc": 1,
"rgn": 1,
"sst": "enroll",
"ssub": "ifr",
"fid": "90f821fa7381ee297a80ed9570dea635"
}
~~~
声纹注册字段
|JSON字段|类型|说明|
| --- | --- | --- | --- |
|sst|String|业务类型,注册业务为enroll|
|ssub|String|子业务类型,声纹业务为ivp |
|ret|int|返回值,0为请求成功,其他为请求失败|
|rgn|int|本次注册需要的训练次数|
|suc|int|本次注册已成功的训练次数|
|vid|String|声纹模型id (当前无需关注)|
声纹注册结果示例:
~~~
{
"vid": "16eb6a9f24c96405647347f8458e4cea",
"suc": 5,
"rgn": 5,
"sst": "enroll",
"ssub": "ivp",
"ret": 0
}
~~~
人脸、声纹1:N检索字段
参考附 录声纹结果 --声纹1:N检索
人脸、声纹和融合验证字段
|JSON字段|类型|说明|
| --- | --- | --- | --- |
|sst|String|业务类型,验证业务为verify |
|ssub|String|子业务类型,取值: ivp:声纹验证;ifr:人脸验证; ivp\|ifr:融合验证。|
|ret|int|返回值,0为请求成功,其他为请求失败|
|decision|String|accepted:验证成功,rejected:验证失败|
|fusion _score|double|相似度得分,仅验证业务返回|
|face _score|double|人脸验证得分,仅验证业务返回|
|voice _score|double|声纹验证得分,仅验证业务返回|
验证结果示例:
~~~
{
"ret": 0,
"face_score": 99.732,
"voice_score": 86.874,
"ssub": "ivp|ifr",
"decision": "accepted",
"fusion_score": 99.823,
"sst": "verify"
}
~~~
人脸、声纹鉴别字段
查询/删除模型字段
| JSON 字段 |类型|说明|
| --- | --- | --- | --- |
|ssub|String|业务类型,取值:ivp:声纹业务;ifr:人脸业务(暂无查询业务) |
|ret|int|返回值,0为请求成功,其他为请求失败|
|sst|String|子业务类型,取值:query:查询模型;delete:删除模型;|
查询结果示例:
~~~
{
"ssub": "ivp",
"sst": "query",
"ret": 0
}
~~~
删除结果示例:
~~~
{
"ssub": "ivp",
"sst": "delete",
"ret": 0
}
~~~
组管理字段
|JSON字段|类型|说明|
| --- | --- | --- | --- |
|ssub|String|ipt:组管理|
|ret|int|返回值,0为请求成功,其他为请求失败|
|group_name|String|组名称|
|group_id|String|组id|
|person|array|组内成员集|
|user|String|用户名|
创建组结果示例:
~~~
{
"ssub": "ipt",
"group_name": " xxxxxxxx ",
"sst": "add",
"ret": 0,
"group_id": "xxxxxxxx"
}
~~~
删除组结果示例:
~~~
{
"ssub": "ipt",
"group_name": " xxxxxxxx ",
"sst": "delete",
"ret": 0,
"group_id": " xxxxxxxx "
}
~~~
查询组中人员结果示例:
~~~
{
"ssub": "ipt",
"person": [
{
"user": " xxxxxxxx "
}
],
"group_name": " xxxxxxxx ",
"sst": "query",
"ret": 0,
"group_id": " xxxxxxxx "
}
~~~
用户加入组结果示例:
~~~
{
"ssub": "ipt",
"group_name": " xxxxxxxx ",
"ret": 0,
"sst": "add",
"user": " xxxxxxxx ",
"group_id": " xxxxxxxx "
}
~~~
用户退出组结果示例:
~~~
{
"ssub": "ipt",
"group_name": " xxxxxxxx ",
"ret": 0,
"sst": "delete",
"user": " xxxxxxxx ",
"group_id": " xxxxxxxx "
}
~~~