From 48e2334e11ff7fc138f66ebf45aa7877a1d8b343 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期五, 15 十一月 2019 11:40:46 +0800
Subject: [PATCH] 去掉es模块儿的异常捕获

---
 ruleserver/readyDataForRule.go |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ruleserver/readyDataForRule.go b/ruleserver/readyDataForRule.go
index 576a95a..dbf5208 100644
--- a/ruleserver/readyDataForRule.go
+++ b/ruleserver/readyDataForRule.go
@@ -8,6 +8,7 @@
 	"errors"
 	"fmt"
 	"github.com/golang/protobuf/proto"
+	uuid "github.com/satori/go.uuid"
 	"math"
 	"nanomsg.org/go-mangos"
 	"nanomsg.org/go-mangos/protocol/req"
@@ -261,7 +262,7 @@
 
 	a.TargetNum = 0
 	threshold := 80.0       // 鐩镐技搴�
-	intersectionper := 0.2 // 鍗犳瘮
+	intersectionper := 20.0 // 鍗犳瘮
 	size := 0.0            // 灏哄
 
 	areaPoints := Json2points(a.AreaJson)
@@ -273,7 +274,8 @@
 		if  obj.Score >= threshold && float64(obj.Rects.Width*obj.Rects.Height) >= size && PgsInterPercent(areaPoints, obj.Rects, widthScale, heigthScale) >= intersectionper {
 			// 杩欐瑕佸榻愯〃杈惧紡閲屾墍闇�瑕佺殑鎵�鏈夊弬鏁�
 			a.TargetNum++
-			arg1 := structure.Arg{obj.Id,obj.Score, PgsInterPercent(areaPoints, obj.Rects, widthScale, heigthScale), float64(obj.Rects.Width * obj.Rects.Height), a.AreaJson,obj.IsYolo, obj.Rects, obj.Feature, obj.ThftRes, []*structure.BaseInfo{},nil}
+			uuid := uuid.NewV4().String()
+			arg1 := structure.Arg{obj.Id,uuid,obj.Score, PgsInterPercent(areaPoints, obj.Rects, widthScale, heigthScale), float64(obj.Rects.Width * obj.Rects.Height), a.AreaJson,obj.IsYolo, obj.Rects, obj.Feature, obj.ThftRes, []*structure.BaseInfo{},structure.ResultMsg{}}
 			//logger.Println("鏀捐繘鍘荤殑arg锛�-------", arg1)
 			a.Args = append(a.Args, &arg1)
 			a.FilterData = append(a.FilterData, &arg1)

--
Gitblit v1.8.0