panlei
2019-12-17 eb6f08d1eea2430383ad486eca9d3a509db344bf
装配目标
1个文件已修改
13 ■■■■■ 已修改文件
algorithm/middleware/middleware.go 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
algorithm/middleware/middleware.go
@@ -478,6 +478,7 @@
        for _,target := range targets1 {
            mergeArg(target,targets2)
            targets2 = nil
            logger.Info("装配后的人体目标")
            return // 装配一次就可以
        }
    }
@@ -488,7 +489,17 @@
        logger.Info("人脸:",arg1.Location,arg1.Score)
        precent := ruleserver.PgsInterPercent(Rect2Point(arg.Location),arg1.Location,1,1)
        if precent > 99 {
            arg.AttachArg = arg1.SourceArg
            face := structure.SourceArg{}
            face.Score = arg1.Score
            face.Location = arg1.Location
            face.Feature = arg1.Feature
            face.Uuid = arg1.Uuid
            face.Type = arg1.Type
            face.ThftRes = arg1.ThftRes
            face.AreaJson = arg1.AreaJson
            face.Liker = arg1.Liker
            face.Proportion = arg1.Proportion
            arg.AttachArg = face
        }
    }
}