Appearance
识别成功
事件名称
onResultSuccess
返回示例
js
onResultSuccess(e) {
console.log(e.detail)
}回调
回调示例
json
{
"recognitionImageBase64": "",
"registerImagePath": "/storage/emulated/0/levenBaiduFace/123456.jpg",
"userName": "leven1",
"userId": "123456",
"registerTime": 1726799590442,
"similar": 0.9583905339241028
}回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| recognitionImageBase64 | String | 当前识别的人脸图片base64数据 |
| registerImagePath | String | 注册的人脸图片路径 |
| userName | String | 注册的用户姓名 |
| userId | String | 注册的用户id |
| registerTime | Integer | 注册时间 |
| similar | Float | 相似度 |
