From d09f65efe90826dd76eaf0ca7cc618df9b09c40d Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期六, 16 十一月 2019 12:53:00 +0800 Subject: [PATCH] 防止个体目标进入yolo结果 --- algorithm/static/static.go | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/algorithm/static/static.go b/algorithm/static/static.go index f5faa99..6083668 100644 --- a/algorithm/static/static.go +++ b/algorithm/static/static.go @@ -142,7 +142,7 @@ // logger.Info("鍏蜂綋鐩爣锛�",tar.Location) //} for _, tar := range structure.StaticMap[am.AreaId].Targets { - singleResult,arg := SingleStatic(tar,am,lable,90) + singleResult,arg := SingleStatic(tar,am,lable,95) if singleResult { flag = "true" tars = append(tars,arg) @@ -223,11 +223,14 @@ if tar.N == 0 && tar.AlarmFlag { logger.Debug("-------------------------绗﹀悎鎸佺画鏃堕棿瑙勫垯浣嗗苟涓嶆槸棣栨锛屼笉鎶ヨ") flagTime = "11" + o.TimeLable = flagTime + o.CacheData = tar.CacheSdkData } if tar.N == 0 && !tar.AlarmFlag { // 杩欑粍瑙勫垯鐨勫畾鏃跺櫒瑕佸叏閮ㄧ瓑浜�0 鏆備笖璁や负涓�缁勮鍒欏彧鏈変竴涓畾鏃跺櫒 logger.Debug("鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��-------------棣栨绗﹀悎鎸佺画鏃堕棿瑙勫垯骞舵姤璀�") flagTime = "10" tar.AlarmFlag = true + o.TimeLable = flagTime o.CacheData = tar.CacheSdkData } if tar.N != 0 { -- Gitblit v1.8.0