zhangzengfei
2024-04-19 b9ce6325cbcf8290bbe72a956c045bd7edc9de5c
关切图功能
2个文件已修改
3 ■■■■ 已修改文件
config/config.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
repository/captureRepo.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/config.go
@@ -28,6 +28,7 @@
    ReportServer   string `mapstructure:"report-server"`
    ReportInterval int    `mapstructure:"report-interval"`
    RetryInterval  int    `mapstructure:"retry-interval"`
    CutFaceImage   bool   `mapstructure:"cut-face-image"`
}
type rateLimitConfig struct {
repository/captureRepo.go
@@ -55,7 +55,7 @@
        }
        // 判断图片类型是否为场景图, 根据人脸坐标切小图.
        if imageType == "14" {
        if imageType == "14" && config.ForwardConf.CutFaceImage {
            faceRect := &vo.Rect{
                Left:   face.LeftTopX,
                Top:    face.LeftTopY,