---
panlei
2019-12-13 596fe167e4bdba16b68ad9951bec0f2b077e0122
algorithm/middleware/readyData.go
@@ -2,7 +2,7 @@
import (
   "basic.com/pubsub/protomsg.git"
   logger "github.com/alecthomas/log4go"
   "basic.com/valib/logger.git"
   "github.com/golang/protobuf/proto"
   uuid "github.com/satori/go.uuid"
   "ruleprocess/ruleserver"
@@ -80,7 +80,6 @@
      if err := recover(); err != nil {
         logger.Info("解包过程的异常捕获", err.(string))
      }
   }()
   // 反序列化数据得到sdk入参
   m := protomsg.SdkMessage{}
@@ -222,8 +221,6 @@
      for _, info := range Track.Result {
         logger.Info("接收跟踪数据:",info.Id,info.Confidence)
         photoMap := structure.PhotoMap{structure.SourcePhoto{Id: strconv.Itoa(int(info.Id)),Score: float64(info.Confidence)*100,Rects: rectFormat(info.RcHuman), Type: "track"},structure.SourcePhoto{}}
         FacePush2Body(&photoMap,m.Tasklab.Sdkinfos)
         logger.Info("组装后的跟踪数据:",photoMap)
         arg.Photo = append(arg.Photo, photoMap)
      }
      args.Sdkdata = append(args.Sdkdata, &arg)