panlei
2019-10-31 355284a3ac944515951d4c2a7ec5d3964fb13857
ruleserver/personTrack.go
@@ -4,7 +4,7 @@
   "basic.com/pubsub/protomsg.git"
   "github.com/golang/protobuf/proto"
   "basic.com/valib/logger.git"
   "ruleprocess/logger"
   "ruleprocess/structure"
)
var TrackPond = make(map[string]*PersonTrack)
@@ -105,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
         }