| | |
| | | //logger.Info("当前走的规则是--:", groupRule.Rules[j],sdkName,groupRule.Rules[j].SdkArgAlias, "---","") |
| | | for _, areaMap := range sdkData.AreaMapList { |
| | | ruleResult := CallSo(sdk.Id, groupRule.Rules[j], areaMap,lable,args,message) |
| | | if groupRule.Rules[j].RuleWithPre == "contain" { |
| | | if groupRule.Rules[j].RuleWithPre == "⊇" { |
| | | assembleDta(args,groupRule.Rules[j-1],groupRule.Rules[j]) |
| | | // 把当前小规则结果置空 |
| | | ruleResult = structure.LittleRuleResult{} |
| | |
| | | soName = "static.so" |
| | | case "812b674b-2375-4589-919a-5c1c3278a978": |
| | | soName = "plate.so" |
| | | case "人体跟踪": |
| | | case "520af340-f257-4fe2-ac3c-695c390e53dc": |
| | | soName = "personTrack.so" |
| | | } |
| | | //soInfo,err := cache.GetSoInfoById(sdkId) |
| | |
| | | // } |
| | | //} |
| | | |
| | | func assembleData(args *structure.SdkDatas,resultSplice []*structure.LittleRuleResult,groupRule protomsg.GroupRule) { |
| | | for index,result := range resultSplice { |
| | | if strings.Contains(result.Result,"contain") { |
| | | assembleDta(args,groupRule.Rules[index-1],groupRule.Rules[index]) |
| | | // 删除带有contain的规则结果 |
| | | resultSplice = append(resultSplice[:index],resultSplice[index+1:]...) |
| | | } |
| | | } |
| | | } |
| | | //func assembleData(args *structure.SdkDatas,resultSplice []*structure.LittleRuleResult,groupRule protomsg.GroupRule) { |
| | | // for index,result := range resultSplice { |
| | | // if strings.Contains(result.Result,"contain") { |
| | | // assembleDta(args,groupRule.Rules[index-1],groupRule.Rules[index]) |
| | | // // 删除带有contain的规则结果 |
| | | // resultSplice = append(resultSplice[:index],resultSplice[index+1:]...) |
| | | // } |
| | | // } |
| | | //} |
| | | // 如果规则组中有包含符号,把规则组之后的规则对应的算法和区域提取的数据装配到前面去 |
| | | func assembleDta(args *structure.SdkDatas,rule1,rule2 *protomsg.Rule) { |
| | | // 拿到后面的那个区域的数据 |