panlei
2019-11-29 087bf92d707de1a838451719da505f69b6934087
algorithm/middleware/readyData.go
@@ -2,7 +2,7 @@
import (
   "basic.com/pubsub/protomsg.git"
   "basic.com/valib/logger.git"
   logger "github.com/jeanphorn/log4go"
   "github.com/golang/protobuf/proto"
   uuid "github.com/satori/go.uuid"
   "ruleprocess/ruleserver"
@@ -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            // 尺寸
@@ -179,9 +179,12 @@
               continue
            }
            for _, info := range plateIDResult.Result {
               logger.Info("接收车牌数据:",info)
               photoMap := structure.PhotoMap{Id: info.License,Score: float64(info.NConfidence),Rects: rectFormat(info.RcLocation), Type: "plate", Car:info}
               arg.Photo = append(arg.Photo, photoMap)
               logger.Info("接收车牌数据:",info.FvdConf,info.NVehicleColor1,info.NPlateFlag,info.RcCarLocation)
               if info.NConfidence > 70 {
                  logger.Info("车牌也符合的数据",info.FvdConf,info.NVehicleColor1,info.NPlateFlag,info.RcCarLocation,info.NConfidence,)
                  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)
         } else {