From 09da5bfd5f39f6e49e35f4c08a425680b317861b Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期四, 15 八月 2019 18:17:11 +0800
Subject: [PATCH] 抽出入侵和人员异常算法
---
ruleserver/personTrack.go | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ruleserver/personTrack.go b/ruleserver/personTrack.go
index 0cb12da..476271a 100644
--- a/ruleserver/personTrack.go
+++ b/ruleserver/personTrack.go
@@ -4,6 +4,7 @@
"basic.com/pubsub/protomsg.git"
"github.com/golang/protobuf/proto"
"ruleprocess/logger"
+ "ruleprocess/structure"
)
var TrackPond = make(map[string]*PersonTrack)
@@ -104,8 +105,8 @@
return false
}
func TrackOrNot(label map[string]interface{}) bool{
- if label["yolo"] != nil && len(label["yolo"].([]Result)) > 0 {
- for _,res := range label["yolo"].([]Result) {
+ if label["yolo"] != nil && len(label["yolo"].([]structure.Result)) > 0 {
+ for _,res := range label["yolo"].([]structure.Result) {
if res.TimeLabel == "10" {
return true
}
--
Gitblit v1.8.0