panlei
2019-09-11 9b41c834ff7caa3137fbb7342e1650995cb036e3
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)
}