1.1. 身份验证结果

人脸注册字段

JSON字段类型说明
sstString业务类型,注册业务为enroll
ssubString子业务类型,人脸业务为ifr
retint返回值,0为请求成功,其他为请求失败
sucint本次注册已成功的训练次数
rgnint本次注册需要的训练次数
fidString人脸模型id (当前无需关注)

人脸注册结果示例:

  1. {
  2. "ret": 0,
  3. "suc": 1,
  4. "rgn": 1,
  5. "sst": "enroll",
  6. "ssub": "ifr",
  7. "fid": "90f821fa7381ee297a80ed9570dea635"
  8. }

声纹注册字段|JSON字段|类型|说明|

| —- | —- | —- | —- ||sst|String|业务类型,注册业务为enroll||ssub|String|子业务类型,声纹业务为ivp ||ret|int|返回值,0为请求成功,其他为请求失败||rgn|int|本次注册需要的训练次数||suc|int|本次注册已成功的训练次数||vid|String|声纹模型id (当前无需关注)|

声纹注册结果示例:

  1. {
  2. "vid": "16eb6a9f24c96405647347f8458e4cea",
  3. "suc": 5,
  4. "rgn": 5,
  5. "sst": "enroll",
  6. "ssub": "ivp",
  7. "ret": 0
  8. }

人脸、声纹1:N检索字段参考附 录声纹结果 —声纹1:N检索

人脸、声纹和融合验证字段

JSON字段类型说明
sstString业务类型,验证业务为verify
ssubString子业务类型,取值: ivp:声纹验证;ifr:人脸验证; ivp\ifr:融合验证。
retint返回值,0为请求成功,其他为请求失败
decisionStringaccepted:验证成功,rejected:验证失败
fusion _scoredouble相似度得分,仅验证业务返回
face _scoredouble人脸验证得分,仅验证业务返回
voice _scoredouble声纹验证得分,仅验证业务返回

验证结果示例:

  1. {
  2. "ret": 0,
  3. "face_score": 99.732,
  4. "voice_score": 86.874,
  5. "ssub": "ivp|ifr",
  6. "decision": "accepted",
  7. "fusion_score": 99.823,
  8. "sst": "verify"
  9. }

人脸、声纹鉴别字段

查询/删除模型字段

JSON 字段类型说明
ssubString业务类型,取值:ivp:声纹业务;ifr:人脸业务(暂无查询业务)
retint返回值,0为请求成功,其他为请求失败
sstString子业务类型,取值:query:查询模型;delete:删除模型;

查询结果示例:

  1. {
  2. "ssub": "ivp",
  3. "sst": "query",
  4. "ret": 0
  5. }

删除结果示例:

  1. {
  2. "ssub": "ivp",
  3. "sst": "delete",
  4. "ret": 0
  5. }

组管理字段

JSON字段类型说明
ssubStringipt:组管理
retint返回值,0为请求成功,其他为请求失败
group_nameString组名称
group_idString组id
personarray组内成员集
userString用户名

创建组结果示例:

  1. {
  2. "ssub": "ipt",
  3. "group_name": " xxxxxxxx ",
  4. "sst": "add",
  5. "ret": 0,
  6. "group_id": "xxxxxxxx"
  7. }

删除组结果示例:

  1. {
  2. "ssub": "ipt",
  3. "group_name": " xxxxxxxx ",
  4. "sst": "delete",
  5. "ret": 0,
  6. "group_id": " xxxxxxxx "
  7. }

查询组中人员结果示例:

  1. {
  2. "ssub": "ipt",
  3. "person": [
  4. {
  5. "user": " xxxxxxxx "
  6. }
  7. ],
  8. "group_name": " xxxxxxxx ",
  9. "sst": "query",
  10. "ret": 0,
  11. "group_id": " xxxxxxxx "
  12. }

用户加入组结果示例:

  1. {
  2. "ssub": "ipt",
  3. "group_name": " xxxxxxxx ",
  4. "ret": 0,
  5. "sst": "add",
  6. "user": " xxxxxxxx ",
  7. "group_id": " xxxxxxxx "
  8. }

用户退出组结果示例:

  1. {
  2. "ssub": "ipt",
  3. "group_name": " xxxxxxxx ",
  4. "ret": 0,
  5. "sst": "delete",
  6. "user": " xxxxxxxx ",
  7. "group_id": " xxxxxxxx "
  8. }