From d275a97946b5bae870929e11766b75a5edd60751 Mon Sep 17 00:00:00 2001 From: chiyi Date: Fri, 7 Aug 2026 13:41:07 +0800 Subject: [PATCH] =?UTF-8?q?tweak(facemask):=20=E9=BB=91=E4=B8=9D=E7=BD=91?= =?UTF-8?q?=E7=9C=BC=E9=97=B4=E8=B7=9D=E6=94=BE=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/service/facemask.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/internal/service/facemask.go b/backend/internal/service/facemask.go index 0d64ce5..34adbd0 100644 --- a/backend/internal/service/facemask.go +++ b/backend/internal/service/facemask.go @@ -278,9 +278,9 @@ func applyFaceNotice(b []byte) ([]byte, error) { // drawStocking 在给定区域上盖一层黑丝网眼:细密的深色网格线,遮住五官细节但保留轮廓。 func drawStocking(dst *image.RGBA, r image.Rectangle) { r = r.Intersect(dst.Bounds()) - step := r.Dx() / 24 - if step < 3 { - step = 3 + step := r.Dx() / 18 + if step < 4 { + step = 4 } for y := r.Min.Y; y < r.Max.Y; y++ { for x := r.Min.X; x < r.Max.X; x++ {