From 2c43d36c526392576b8fb99b31c85ed977299f53 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期四, 21 十一月 2019 17:38:04 +0800
Subject: [PATCH] ---

---
 insertdata/insertDataToEs.go |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/insertdata/insertDataToEs.go b/insertdata/insertDataToEs.go
index 4a4e459..3b86ac5 100644
--- a/insertdata/insertDataToEs.go
+++ b/insertdata/insertDataToEs.go
@@ -171,7 +171,7 @@
 						i := protomsg.Image{}
 						err = proto.Unmarshal(bdata, &i)
 						// 鍏堜紶灏忓浘锛屽啀浼犲ぇ鍥撅紝闃叉鑴镐笂鏈夌嚎
-						bytes := util.SubImg(i, int(face.Location.X), int(face.Location.Y), int(face.Location.X+face.Location.Width), int(face.Location.Y+face.Location.Height))
+						bytes := util.SubImg(i, int(face.Location.X), int(face.Location.Y), int(face.Location.X+face.Location.Width), int(face.Location.Y+face.Location.Height),face.Type)
 						resp, err := util.PostFormBufferData1(weedfsUrl, bytes, uuid.NewV4().String())
 						if err != nil {
 							logger.Error("涓婁紶灏忓浘鍑洪敊")
@@ -361,7 +361,7 @@
 							var target1 = new(Target)
 							target1.TargetId = target.Id
 							target1.TargetScore = target.Score
-							target1.TargetType = target.Type
+							target1.TargetType = "action"
 							target1.TargetLocation = Points{TopLeft: Point{target.Location.X, target.Location.Y}, BottomRight: Point{target.Location.X + target.Location.Width, target.Location.Y + target.Location.Height}}
 							targetInfos = append(targetInfos, *target1)
 						}
@@ -562,7 +562,7 @@
 						var target1 = new(Target)
 						target1.TargetId = target.Id
 						target1.TargetScore = target.Score
-						target1.TargetType = target.Type
+						target1.TargetType = "action"
 						target1.TargetLocation = Points{TopLeft: Point{target.Location.X, target.Location.Y}, BottomRight: Point{target.Location.X + target.Location.Width, target.Location.Y + target.Location.Height}}
 						targetInfos = append(targetInfos, *target1)
 					}
@@ -755,9 +755,10 @@
 	case "plate":
 		// 杞︾墝杩愬姩鏂瑰悜锛�0 unknown, 1 left, 2 right, 3 up, 4 down
 		lable = obj.Car.License + "/" + cache.GetDic("nVehicleColor1"+strconv.Itoa(int(obj.Car.NVehicleColor1))) + "杞﹁締" + "/" +
-			"鍝佺墝锛�" +obj.Car.VehicleType1+"/"+cache.GetDic("nColor"+strconv.Itoa(int(obj.Car.NColor))) + "杞︾墝"
+			cache.GetDic("nColor"+strconv.Itoa(int(obj.Car.NColor))) + "杞︾墝"
 		lableAttach = "杞︾墝缃俊搴︼細" + strconv.Itoa(int(obj.Car.NConfidence)) + "/" + "杞︾殑浜害锛�" + strconv.Itoa(int(obj.Car.NVehicleBright)) +"/"+ "杞︾墝绫诲瀷"+cache.GetDic("nType"+strconv.Itoa(int(obj.Car.NType)))+
-			"杞﹁韩杈呴鑹诧細"+cache.GetDic("nVehicleColor2"+strconv.Itoa(int(obj.Car.NVehicleColor2)))+"/"+"鏄惁璇嗗埆鍒拌溅鐗岋細"+cache.GetDic("nVehicleColor1"+strconv.Itoa(int(obj.Car.NVehicleColor1)))+"/"+"杞﹁締缃俊搴�"+strconv.Itoa(int(obj.Score))
+			"杞﹁韩杈呴鑹诧細"+cache.GetDic("nVehicleColor2"+strconv.Itoa(int(obj.Car.NVehicleColor2)))+"/"+"鏄惁璇嗗埆鍒拌溅鐗岋細"+cache.GetDic("nVehicleColor1"+strconv.Itoa(int(obj.Car.NVehicleColor1)))+"/"+
+			"杞﹁締缃俊搴�"+strconv.Itoa(int(obj.Score))+"/"+"鍝佺墝锛�" +obj.Car.VehicleType1
 	}
 	return lable, lableAttach
 }

--
Gitblit v1.8.0