模拟相机推送
<p>【本教程用处】:如果你没有相机或者不方便到现场去使用相机进行测试时,可以模拟相机进行车辆进出场,进而达到模拟真实情况的效果。</p>
<p>【准备工作】:</p>
<p>*注:本工作仅针对具有一定互联网工作经验的人员使用</p>
<p>postman工具 工具下载官方地址:<a href="https://www.postman.com/downloads/">https://www.postman.com/downloads/</a></p>
<p>注册一个postman账号,登录</p>
<p>填入请求地址 格式为 <a href="https://你的域名/carparklog/add?deviceBrand=相机硬件品牌">https://你的域名/carparklog/add?deviceBrand=相机硬件品牌</a></p>
<p>相机硬件品牌目前我们支持分别为 臻识(zhen_shi),千熠(qian_yi),华夏(hua_xia),海康(hk) 若您有其它品牌大众相机,可以提交给我们增加支持</p>
<p>请求方式为PUT方式请求(其实我们支持所有请求方式,这里为了方便,我们推荐使用PUT操作而已)</p>
<p>填入数据,数据体请放到body和raw 下</p>
<p>修改相应的相机序列号和车辆进出场时间,以及车牌号。</p>
<p>请求数据体如下,整体效果图请往下拉,注意,下面是json数据压缩之后的,</p>
<p>{"AlarmInfoPlate":{"channel":0,"deviceName":"IVS","ipaddr":"192.168.1.100","serialno":"e76b1fb9-d000b8f1","user_data":"NjYwMGM2Y2ZjMjBkNjAyNjVY2Yzk2ZmYzMWM1NGE=","result":{"PlateResult":{"colorType":1,"type":1,"direction":4,"triggerType":8,"gioouts":[],"isoffline":0,"plateid":79106,"license":"鄂A88888","timeStamp":{"Timeval":{"decyear":2021,"decmon":5,"decday":30,"dechour":16,"decmin":9,"decsec":21,"sec":1626929207,"usec":198936}},"bright":0,"carBright":0,"carColor":0,"confidence":100,"colorValue":0,"location":{"RECT":{"bottom":730,"left":676,"right":875,"top":652}},"timeUsed":1622723445,"imageFragmentFileLen":2824,"imageFragmentFile":"","imageFileLen":357660,"imageFile":""}}}}</p>
<p>为了方便大家查看,我们对请求的数据进行了展开</p>
<p>{
"AlarmInfoPlate": {
"channel": 0,
"deviceName": "IVS",
"ipaddr": "192.168.1.100",
"serialno": "相机序列号,格式为,例如臻识: e461fb9-d24678f1",
"user_data": "NjYwMGM2Y2ZjMjBkNjAyNjVjNTY2Yzk2ZmYzMWM1NGE=",
"result": {
"PlateResult": {
"colorType": 1,
"type": 1,
"direction": 4,
"triggerType": 8,
"gioouts": [],
"isoffline": 0,
"plateid": 79106,
"license": "车牌号,格式为,例如 鄂A88888",
"timeStamp": {
"Timeval": {
"decyear": 2021,
"decmon": 5,
"decday": 30,
"dechour": 16,
"decmin": 9,
"decsec": 21,
"sec": 时间戳,单位为秒,北京时间,
"usec": 198936
}
},
"bright": 0,
"carBright": 0,
"carColor": 0,
"confidence": 100,
"colorValue": 0,
"location": {
"RECT": {
"bottom": 730,
"left": 676,
"right": 875,
"top": 652
}
},
"timeUsed": 1622723445,
"imageFragmentFileLen": 2824,
"imageFragmentFile": "",
"imageFileLen": 357660,
"imageFile": ""
}
}
}
}</p>
<p>请求效果图
<img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=d5e3ad2f967ba4afa850c183aa69b04b&amp;file=file.png" alt="" /></p>