| | |
| | | func CountAreaObjs(a *structure.AreaMap,arg *structure.SdkData) { |
| | | |
| | | a.TargetNum = 0 |
| | | threshold := 60.0 // 相似度 |
| | | threshold := 70.0 // 相似度 |
| | | intersectionper := 20.0 // 占比 |
| | | size := 0.0 // 尺寸 |
| | | |
| | |
| | | if err := json.Unmarshal(b, &dicss) ; err == nil { |
| | | for key, dics1 := range dicss { |
| | | for _,dic := range dics1 { |
| | | logger.Debug("字典缓存初始化",PREFIX_DIC+key+dic.value, dic) |
| | | cMap.Set(PREFIX_DIC+key+dic.value, dic) |
| | | } |
| | | } |
| | |
| | | |
| | | case "plate": |
| | | // 车牌运动方向,0 unknown, 1 left, 2 right, 3 up, 4 down |
| | | logger.Info("车辆车牌信息:",obj.Car.NColor,obj.Car.NCarColor,obj.Car.NCarLogo,obj.Car.NCarType,obj.Car.NDirection) |
| | | lable = obj.Car.License + "/" + cache.GetDic("nColor"+strconv.Itoa(int(obj.Car.NColor))) + "车牌" + "/" + |
| | | cache.GetDic("nCarColor"+strconv.Itoa(int(obj.Car.NCarColor))) + "车辆" + "/" + cache.GetDic("nCarLogo"+strconv.Itoa(int(obj.Car.NCarLogo))) + "/" + cache.GetDic("nCarType"+strconv.Itoa(int(obj.Car.NCarType))) |
| | | lableAttach = cache.GetDic("nDirection"+strconv.Itoa(int(obj.Car.NDirection))) + "/" + "车牌置信度:" + strconv.Itoa(int(obj.Car.NConfidence)) + "/" + |