From 9b41c834ff7caa3137fbb7342e1650995cb036e3 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期三, 11 九月 2019 19:36:48 +0800
Subject: [PATCH] add default value of score

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

diff --git a/ruleserver/readyDataForRule.go b/ruleserver/readyDataForRule.go
index 8776f8b..e926d88 100644
--- a/ruleserver/readyDataForRule.go
+++ b/ruleserver/readyDataForRule.go
@@ -1,7 +1,7 @@
 package ruleserver
 
 import (
-	"basic.com/pubsub/cache.git/esutil"
+	"basic.com/dbapi.git"
 	"basic.com/pubsub/protomsg.git"
 	"encoding/json"
 	"errors"
@@ -16,6 +16,7 @@
 	"net"
 	"ruleprocess/cache"
 	"ruleprocess/logger"
+	"ruleprocess/structure"
 	"strconv"
 	"time"
 )
@@ -283,7 +284,7 @@
 func CountAreaObjs(a *structure.AreaMap,arg *structure.SdkData) {
 
 	a.TargetNum = 0
-	threshold := 0.0       // 鐩镐技搴�
+	threshold := 0.5       // 鐩镐技搴�
 	intersectionper := 0.2 // 鍗犳瘮
 	size := 0.0            // 灏哄
 
@@ -301,10 +302,10 @@
 			a.FilterData = append(a.FilterData, &arg1)
 		}
 	}
-	logger.Info("鍖哄煙鏄細",areaPoints,"鍖哄煙鍐呯洰鏍囨暟閲忎负锛�",a.targetNum,"---",len(a.filterData))
-	a.time = time.Unix(time.Now().Unix(), 0).String()[11:16]
-	a.keepRight = arg.KeepRight
-	a.isStatic = arg.IsStatic
+	logger.Info("鍖哄煙鏄細",areaPoints,"鍖哄煙鍐呯洰鏍囨暟閲忎负锛�",a.TargetNum,"---",len(a.FilterData))
+	a.Time = time.Unix(time.Now().Unix(), 0).String()[11:16]
+	a.KeepRight = arg.KeepRight
+	a.IsStatic = arg.IsStatic
 	//logger.Println("--------------------鐪嬬湅鍖哄煙鏁版嵁锛�",*a)
 }
 

--
Gitblit v1.8.0