From 47a3f62da93acf15502c66ff387c318f942247a2 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期五, 22 十一月 2019 10:08:06 +0800 Subject: [PATCH] --- --- algorithm/middleware/readyData.go | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/algorithm/middleware/readyData.go b/algorithm/middleware/readyData.go index 88f1c61..cbae1a7 100644 --- a/algorithm/middleware/readyData.go +++ b/algorithm/middleware/readyData.go @@ -21,7 +21,7 @@ func CountAreaObjs(a *structure.AreaMap,arg *structure.SdkData) { a.TargetNum = 0 - threshold := 60.0 // 鐩镐技搴� + threshold := 70.0 // 鐩镐技搴� intersectionper := 20.0 // 鍗犳瘮 size := 0.0 // 灏哄 @@ -166,6 +166,7 @@ if sdkinfo.Sdktype == "Plate" { // 杞︾墝璇嗗埆 arg := structure.SdkData{} arg.TaskId = m.Tasklab.Taskid + logger.Info("杞︾墝鐨刬pcid锛�",sdkinfo.Ipcid) arg.IpcId = sdkinfo.Ipcid arg.IsYolo = false arg.ImageWidth = int(i.Width) @@ -178,8 +179,8 @@ continue } for _, info := range plateIDResult.Result { - logger.Info("鎺ユ敹杞︾墝鏁版嵁锛�",info) - photoMap := structure.PhotoMap{Score: float64(info.NConfidence),Rects: rectFormat(info.RcLocation), Type: "plate", Car:info} + logger.Info("鎺ユ敹杞︾墝鏁版嵁锛�",info.FvdConf,info.NVehicleColor1,info.NPlateFlag,info.RcCarLocation) + photoMap := structure.PhotoMap{Id: info.License,Score: float64(info.FvdConf)*100,Rects: rectFormat(info.RcCarLocation), Type: "plate", Car:info} arg.Photo = append(arg.Photo, photoMap) } args.Sdkdata = append(args.Sdkdata, &arg) -- Gitblit v1.8.0