乐橙云开发文档
控制台
更新日志
控制台
更新日志
快速入门
  • 开始使用
  • 核心概念
  • 开发指南
  • 设备能力与事件参考
    • 按设备类型浏览
    • 设备能力
      • 通用方法
      • 侦测与告警
        • 布撤防
        • 关注区域
        • 客流
        • 哭声
        • 离岗
        • 人脸识别
          • detection.face.enabled(获取人脸检测开关属性)
          • detection.face.enabled(设置人脸检测开关属性)
          • detection.face.config(获取人脸库配置属性)
          • detection.face.config(设置人脸库配置属性)
          • detection.face.list(查询人脸库)
          • detection.face.importProgress(人脸库导入进度)
          • detection.face.notifyUpdate(通知人脸库更新)
          • detection.face.detected(人脸比对)
        • 跌倒
        • 手势呼叫
        • 区域入侵
        • 徘徊
        • 未成年检测
        • 人车混合
        • 动检
        • 视频遮挡
        • 车辆违停
        • 人形
        • 宠物
        • PIR
        • 车牌识别
        • 车辆守卫
        • 警笛
        • 语音呼救
        • 异常音
        • 越线
        • 无人出现
        • 车辆
        • 门磁
        • 防拆
        • 门控配件
        • 环境传感
        • 目标检测框
      • 图像
      • 云台
      • 灯光
      • 录像
      • 音频
      • 媒体
      • 网络
      • 电源
      • 隐私
      • 呼叫
      • 存储
      • 系统
      • 算法
      • 设备维护
      • 控制
      • 接口清单
      • 先跑通一次
    • 事件目录
    • 权限码
    • 错误码
    • 告警消息
  • API 参考
  • SDK 与工具
  • 行业方案
  • 平台与支持
本页目录
功能详情
上报字段说明
样例
最小权限

detection.face.detected(人脸比对)

detection.face.detected:人脸比对

detection.face.detected · 通道级 · 消息查询权限 Alarm

功能详情

人脸比对触发时上报。上报报文里 msgType 等于 detection.face.detected。收这条推送需要订阅 capabilityEvent。实时推送和拉取收到的就是本页这条上报报文,见 接收告警。

上报字段说明

outputData 内字段。平台字段见 接收告警。

参数名说明类型必填取值
id人脸库Id。text否字符串
faces人脸属性列表。最多 100 条。array否最多 100 条
snapFace抓拍人脸。struct否结构体
candidates比对候选人。最多 100 条。array否最多 100 条
isDuplicateRemove是否去重。text否字符串
address抓拍地址。text否字符串
passerby路人库。含 uid、groupId、groupName。struct否含 uid、groupId、groupName
passerby.uid路人标识。text否字符串
passerby.groupId路人库Id。text否字符串
passerby.groupName路人库名称。text否字符串
ptzInfoPTZ 信息。含 presetNumber、presetName。struct否含 presetNumber、presetName
ptzInfo.presetNumber预置点号。范围 0~999999,步长 1。int否0~999999,步长 1
ptzInfo.presetName预置点名称。text否字符串

样例

{
  "msgType": "detection.face.detected",
  "deviceId": "TESTIPC000012345",
  "productId": "56WGTET2",
  "channelId": "0",
  "outputData": {
    "id": "example",
    "faces": [],
    "snapFace": {},
    "candidates": [],
    "isDuplicateRemove": "example",
    "address": "example",
    "passerby": {
      "uid": "example",
      "groupId": "example",
      "groupName": "example"
    },
    "ptzInfo": {
      "presetNumber": 0,
      "presetName": "example"
    }
  },
  "time": 1673406989,
  "localTime": "20230111T111629",
  "alarmId": "116257862023505xxxx",
  "token": "f2dc8c09eeae4b5bad6abf522c93d825",
  "thumbUrl": "https://example.imou.com/pic/thumb.jpg",
  "picUrlArray": [
    "https://example.imou.com/pic/frame1.jpg",
    "https://example.imou.com/pic/frame2.jpg"
  ]
}

最小权限

管理员操作自己绑定的设备不需要权限。操作被分享设备需要报警消息权限。子用户绑定不需要。子账号需要 Alarm。见 权限码。list / search 按条过滤无权事件。人脸识别。

商务合作:cloud_openteam@imou.com · 工单 · 获取帮助(公众号、小程序试用中心)

Copyright © 2015-2026 IMOU. All Rights Reserved. 浙ICP备16023676号

detection.face.notifyUpdate(通知人脸库更新)
detection.fall.enabled(获取跌倒检测开关属性)