panlei
2019-12-16 1570637a67ec0849dbe53cff570c8691a9cff49b
algorithm/personTrack/personTrack.go
@@ -101,7 +101,7 @@
   trackArg["esId"] = esId
   trackArg["threshold"] = compareThreshold
   trackArg["cameraId"] = am.CameraId
   trackArg["bodyFeature"] = arg.Feature
   trackArg["bodyFeature"] = arg.BodyFeature
   trackArg["faceFeature"]   = arg.AttachArg.Feature
   logger.Info("请求张增飞比对数据参数:",trackArg)
   b,err := json.Marshal(trackArg)
@@ -120,7 +120,7 @@
}
func track (rule *protomsg.Rule,am *structure.AreaMap) structure.LittleRuleResult{
   var threshold float32 = 70 // 默认阈值为70
   var threshold float32 = 60 // 默认阈值为70
   if th,err := strconv.ParseFloat(rule.SdkArgValue,32); err == nil {
      threshold = float32(th)
   }