注:主题订阅不可使用通配符
# 功能详情
获取虫情测报灯的抓拍图片与识别结果。
# 订阅topic
zhonghe/cbd/log/#{sno}
其中,#{sno}表示虫情测报灯设备号
# 返回数据说明
| 字段名 | 字段类型 | 字段说明 |
|---|---|---|
| sno | String | 设备号 |
| totalCount | Integer | 当前日志识别昆虫总数 |
| img | String | 日志原图 |
| imgThumb | String | 日志缩略图 |
| handledImg | String | AI识别之后的原图(如果未识别出则为空) |
| handledImgThumb | String | AI识别之后的缩略图(如果未识别出则为空) |
| createTime | Date | 日志采集时间 |
| items | List | 识别出的昆虫统计信息 |
注:图片后期会添加过期时间,强烈建议进行本地存储
其中items的数据结构说明如下
| 字段名 | 字段类型 | 字段说明 |
|---|---|---|
| label | String | 昆虫唯一标识 |
| insectName | String | 昆虫中文名 |
| insectCount | String | 昆虫数量 |
# 样例输出
{
"sno": "171CB7400964",
"totalCount": 1,
"img": "https://www.sdzhiot.top/profile/insect/2022/05/31/2db4d289-fd9a-4b0c-82a2-e8fc3cdf04f3.png",
"imgThumb": null,
"handledImg": "https://www.sdzhiot.top/profile/upload/2022/05/31/5e500e9f-de56-476c-a855-135922c1932f.png",
"handledImgThumb": null,
"createTime": "2022-05-31T00:04:58.000+0800",
"items": [
{
"label": "yee",
"insectName": "夜蛾",
"insectCount": 1
}
]
}