From 16e49a6d9eb097ef00c37068b025f2b9d3ebbf45 Mon Sep 17 00:00:00 2001 From: Admin Date: Fri, 17 Jul 2026 20:52:36 +0000 Subject: [PATCH] fix: lower threshold for small order images (284x106) --- internal/captcha/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/captcha/handler.go b/internal/captcha/handler.go index 0956d37..14806f8 100644 --- a/internal/captcha/handler.go +++ b/internal/captcha/handler.go @@ -896,8 +896,8 @@ func (h *Handler) detectYOLO(modelName, imageBase64 string) (*DetectionResult, e // 需要转置 + NMS 后处理,坐标从 640x640 缩放到原图尺寸 // 对于小图片(order 提示图)使用更低的置信度阈值 confThresh := 0.25 - if origW < 200 || origH < 100 { - confThresh = 0.1 // 小图使用更低阈值 + if origW < 300 || origH < 150 { + confThresh = 0.05 // 小图使用更低阈值 } detections := postprocessYOLO(output, origW, origH, confThresh, 0.45)