---
panlei
2019-11-20 1d71d2a36ad11fd27223634cda8bd2229ef566bf
insertdata/insertDataToEs.go
@@ -97,6 +97,7 @@
type Target struct {
   TargetId       string  `json:"targetId"`
   TargetScore    float64 `json:"targetScore"`
   TargetType     string  `json:"targetType"`
   Feature        string  `json:"feature"`
   PicSmUrl       string  `json:"picSmUrl"`
   TargetLocation Points  `json:"targetLocation"`
@@ -187,7 +188,10 @@
                  var target = new(Target)
                  target.TargetId = face.Id
                  target.TargetScore = face.Score
                  target.TargetType = face.Type
                  logger.Info("人脸的特征值是:",face.Feature)
                  target.Feature = base64.StdEncoding.EncodeToString(face.Feature)
                  logger.Info("base64版本:",target.Feature)
                  target.PicSmUrl = resp["fileUrl"].(string)
                  target.TargetLocation = Points{TopLeft: Point{face.Location.X, face.Location.Y}, BottomRight: Point{face.Location.X + face.Location.Width, face.Location.Y + face.Location.Height}}
                  var targetInfos []Target
@@ -200,6 +204,7 @@
                  case "plate":
                     sdkname = "车牌识别"
                  }
                  logger.Info("人脸目标target:",targetInfos)
                  pervideo := PerVideoPicture{
                     face.Uuid,
                     msg.Cid,