人流量动态统计功能中统计数据始终为零
136*****734 发布于2021-09 浏览:3743 回复:0
0
收藏

在使用人流量动态统计功能中统计出来的数据始终为零,其中视频采用的是百度官网提供的演示视频(https://ai.baidu.com/tech/body/num),视频分辨率为bitmap.getWidth():640, bitmap.getHeight():368,区域设置为1,184,1,367,639,367,639,1,分析过程中,person_num有变化,但person_count中的in和out始终为零。

请求数据为:

Map mapBodyTracking = new HashMap<>();
mapBodyTracking.put("area", videoPointListString);
mapBodyTracking.put("case_id", "87654");
if (frameAtTime == 200) {
mapBodyTracking.put("case_init", "true");
} else {
mapBodyTracking.put("case_init", "false");
}
mapBodyTracking.put("dynamic", "true");
mapBodyTracking.put("image", imgParam);
String param = MapUrlParamsUtils.getUrlParamsByMap(mapBodyTracking);
String resultBodyTracking = HttpUtil.post(urlBodyTracking, accessToken,param);

服务器段反馈数据如下:

W/System.err: null--->[HTTP/1.1 200 OK]
Access-Control-Allow-Headers--->[Content-Type, x-requested-with, X-Custom-Header, HaiYi-Access-Token]
Access-Control-Allow-Methods--->[POST, GET, DELETE, OPTIONS, DELETE]
Access-Control-Allow-Origin--->[*]
Appid--->[24637213]
Connection--->[keep-alive]
Content-Type--->[application/json]
Date--->[Mon, 13 Sep 2021 01:03:54 GMT]
Server--->[Apache]
Set-Cookie--->[BAIDUID=98C3ADE52AA28385E8F44DBDEDA5B394:FG=1; Path=/; Domain=baidu.com; Max-Age=31536000]
Vary--->[Accept-Encoding]
X-Android-Received-Millis--->[1631495033594]
X-Android-Response-Source--->[NETWORK 200]
X-Android-Selected-Protocol--->[http/1.1]
X-Android-Sent-Millis--->[1631495033055]
X-B3-Spanid--->[771811e6-142e-11ec-b643-f39c6f250092]
W/System.err: X-B3-Traceid--->[771811e8-142e-11ec-b643-f39c6f250092]
X-Baidu-Request-Id--->[7bc72086cb74068f03eb7e465dfe528f1000627]
result:{"person_num":3,"person_info":[{"location":{"top":269,"left":414,"width":121,"height":97},"ID":1},{"location":{"top":306,"left":34,"width":69,"height":59},"ID":2},{"location":{"top":331,"left":220,"width":60,"height":35},"ID":3}],"person_count":{"in":0,"out":0},"log_id":1437220458552029184}

收藏
点赞
0
个赞
TOP
切换版块