订阅RG识别事件

接口描述

当相机产生滞留或者其他事件结果后,推送此消息。

Topic

device/${sn}/message/up/lanectrl_result

消息示例

{
  "id": "iUA4fO7yCGrHZO2C",
  "bv": 12378,
  "sn": "265e1040-85e01fb7",
  "name": "lanectrl_result",
  "version": "1.0",
  "timestamp": 1621926595,
  "payload": {
    "device_info": {
      "alg_chn": 0,
      "chn_id": 0,
      "dev_ip": "192.168.19.214",
      "rule_id": 0,
      "dev_port": 80,
      "soft_ver": "21.1.1.1638865485"
    },
    "time":"2021-12-08 10:21:28",
    "result_id": 444,
    "isoffline": 0,
    "event_type": 81,
    "group_id":4,
    "group_id_str":"2023051214101536",
    "result" : [
      {
         "full_image" : {
            "fe_crop_info" : {
               "height" : 820,
               "left" : 732,
               "top" : 204,
               "width" : 1568
            },
            "full_image_id" : 890,
            "full_image_absolutePath": "xxx",
            "full_image_relativePath": "xxxxx",
            "full_image_path" : "aW1ncy9hMDZjYmZhMy0yZTkzZGI2ZS8yMDIxMTIwOC8xNjM4OTMwMDg4X2EwNmNiZmEzLTJlOTNkYjZlXzQ0NF8xOTBfZnVsbC5qcGc=",
            "image_type" : 0
         },
         "plate_result" : {
            "color_type" : "6JOd6Imy",
            "confidence" : 70,
            "license" : "6LS1SjBYVVcz",
            "plate_true_width" : 185,
            "type" : "5Y2V5bGC6JOd6Imy5pmu6YCa6L2m54mM"
         },
         "small_image" : {
            "image_type" : 0,
            "small_image_id" : -1,
            "small_image_absolutePath": "",
            "small_image_relativePath": "",
            "small_image_path" : ""
         }
      }
   ],
  }
}

字段含义

参数 类型 说明
+device_info object 设备信息
+alg_chn int 固定值 0
+chn_id int 固定值 0
+dev_ip string 设备ip
+dev_port int 固定值80
+rule_id int 规则id
+soft_ver string 软件版本号
+time string 识别时间
+result_id int 识别结果id
+isoffline int 是否是离线数据, 0 不是 1 是
+event_type int 十六进制(十进制):事件类型。实际字段结果为十进制,详细类型说明如下:
0x49(73):人滞留解除
0x50(80):人滞留
0x51(81):车滞留
0x52(82):车滞留解除
0x53(83):机动车辆通行事件
0x54(84):机动车辆折返事件
0x55(85):跟车事件
0x60(96):人员拥堵
0x61(97):人员拥堵解除
0x70(112):非机动车滞留
0x71(113):非机动车滞留解除
0x80(128):道闸正常
0x81(129):道闸异常
0x82(130):道闸回落
0x83(131):道闸抬升
0x90(144):车辆拥堵
0x91(145):车辆拥堵解除
+group_id int 滞留事件和滞留解除事件、拥堵事件和拥堵解除事件、道闸正常和道闸异常事件配对使用,取值[1,99999999]的递增,重启或超过上限归1
+group_id_str string 此字段与 group_id 字段含义相同,在group_id前上增加了事件触发的日期时间,日期时间14位形如YYYYMMDDhhmmss,后缀id8位,值与group_id一致,用0补足8位显示。示例"2023051214135200000008"
+result array 结果信息
+full_image object 大图信息
+full_image_path string 大图存储路径,Base64编码后的云存路径
+full_image_absolutePath string Base64编码后的云存绝对路径(使用VZOSS时,此字段无效)
+full_image_relativePath string Base64编码后的云存相对路径
+fe_crop_info object 截图坐标
+full_image_id int 大图id
+image_type int 图片类型 0 jpg
+small_image object 截图信息
+small_image_path string 截图存储路径,Base64编码后的云存路径
+small_image_absolutePath string Base64编码后的云存绝对路径(使用VZOSS时,此字段无效)
+small_image_relativePath string Base64编码后的云存相对路径
+small_image_id int 截图id
+image_type int 图片类型 0 jpg
plate_result object 车辆事件车牌信息,其他事件这个字段不存在
+color_type string 车牌颜色, Utf8_Base64编码
+confidence int 车牌置信度
+license string 车牌, Utf8_Base64编码
+plate_true_width int 车牌宽度
+type string 车辆类型, Utf8_Base64编码

results matching ""

    No results matching ""