config/config.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
repository/captureRepo.go | ●●●●● 补丁 | 查看 | 原始文档 | 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,