| | |
| | | // 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) |
| | |
| | | islink = false |
| | | } |
| | | var labelTypes []int // 0为yolo标签,1为face标签 2为两者标签 |
| | | if sdkNames != "" { |
| | | if sdkNames != "" && len(targets) == 0 { |
| | | args.RuleResult["yolo"] = append(args.RuleResult["yolo"].([]structure.Result), structure.Result{taskId, sdkNames, groupRule.GroupId, groupRule.DefenceState, groupRule.AlarmLevel, groupRule.GroupText, yolos, polygonId, islink,label}) |
| | | labelTypes = append(labelTypes,0) |
| | | //logger.Info("-------------------yolo结果标签长度", len(args.RuleResult["yolo"].([]Result))) |