---
panlei
2019-12-17 f88705a2c1adaa093d61d4575c4705f3b05f684c
---
1个文件已修改
5 ■■■■■ 已修改文件
algorithm/personTrack/personTrack.go 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
algorithm/personTrack/personTrack.go
@@ -118,6 +118,11 @@
}
func track (rule *protomsg.Rule,am *structure.AreaMap) structure.LittleRuleResult{
    defer func() {
        if err := recover();err != nil {
            logger.Error("追踪判断失败",err)
        }
    }()
    var threshold float32 = 60 // 默认阈值为70
    if th,err := strconv.ParseFloat(rule.SdkArgValue,32); err == nil {
        threshold = float32(th)