panlei
2019-12-17 f8aa9316d6bf32392883081c3d08196f6ca344c9
algorithm/personTrack/personTrack.go
@@ -108,10 +108,10 @@
   if esId == result["esId"].(string) || result["esId"].(string) == ""{ // 说明没比到相似的人,是新人
      logger.Info("没比到人")
      arg.Uuid = esId
   } else if result["esId"].(string) != esId && result["compare"].(bool){ // 比到了相似的人且在此摄像机下已经出现过,最后不能插入数据库
   } else if result["esId"].(string) != esId && result["isHave"].(bool){ // 比到了相似的人且在此摄像机下已经出现过,最后不能插入数据库
      logger.Info("比对出来的dataId:",result["esId"].(string))
      arg.Uuid = ""
   } else if result["esId"].(string) != esId && !result["compare"].(bool) { // 比到了相似的人但在此摄像机下未出现过,要插入数据库
   } else if result["esId"].(string) != esId && !result["isHave"].(bool) { // 比到了相似的人但在此摄像机下未出现过,要插入数据库
      base := structure.BaseInfo{TargetId:result["esId"].(string)}
      arg.Liker = append(arg.Liker, &base)
   }