| | |
| | | intersectionper <= PgsInterPercent(areaPoints, obj.Rects, widthScale, heigthScale) { |
| | | // 这步要备齐表达式里所需要的所有参数 |
| | | a.targetNum++ |
| | | arg := Arg{score: obj.Score, proportion: PgsInterPercent(areaPoints, obj.Rects, widthScale, heigthScale), size: float64(obj.Rects.Width * obj.Rects.Height)} |
| | | a.args = append(a.args, arg) |
| | | a.filterData = append(a.filterData, arg) |
| | | arg1 := Arg{score: obj.Score, proportion: PgsInterPercent(areaPoints, obj.Rects, widthScale, heigthScale), size: float64(obj.Rects.Width * obj.Rects.Height)} |
| | | log.Println("放进去的arg:-------",arg1) |
| | | a.args = append(a.args, arg1) |
| | | a.filterData = append(a.filterData, arg1) |
| | | } |
| | | } |
| | | a.time = time.Unix(time.Now().Unix(), 0).String()[11:16] |
| | |
| | | return "false" |
| | | } |
| | | } else if rule.SdkId == "FaceCompare"{ |
| | | // 只需要过滤阈值,过滤完后数组长度大于0即为报警,但如何对每一张都报警呢 |
| | | |
| | | } |
| | | |