panlei
2019-07-02 5397069b5f31216437318c19e885294d612c5799
ruleserver/ruleToformula.go
@@ -232,6 +232,7 @@
      }
   }()
   log.Println("++++++++++++++++++++++++++++规则开始运行+++++++++++++++++++++++++")
   resultSplice := []*LittleRuleResult{}
   // 先过完条件规则
   for j := 0; j < len(groupRule.Rules); j++ {
@@ -373,7 +374,7 @@
   // }
   for _, obj := range arg.Photo {
      //log.Println("------------------看看sdkData的Photo数据----------------", obj, "----顺便看看占比-----:", PgsInterPercent(areaPoints, obj.Rects, widthScale, heigthScale))
      log.Println("------------------看看sdkData的Photo数据----------------", obj, "----顺便看看占比-----:", PgsInterPercent(areaPoints, obj.Rects, widthScale, heigthScale))
      if threshold <= obj.Score && size <= float64(obj.Rects.Width*obj.Rects.Height) && intersectionper <= PgsInterPercent(areaPoints, obj.Rects, widthScale, heigthScale) {
         // 这步要备齐表达式里所需要的所有参数
         a.targetNum++