From 9758f7a15fa70771ee8b4921cc49f5494613faf0 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Tue, 4 Nov 2025 16:17:13 +0200 Subject: [PATCH] adjust detection --- lib/templates/detect_fields.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templates/detect_fields.rb b/lib/templates/detect_fields.rb index 4eb90d55..90a11e1b 100755 --- a/lib/templates/detect_fields.rb +++ b/lib/templates/detect_fields.rb @@ -58,7 +58,7 @@ module Templates image = Vips::Image.new_from_memory(data, width, height, 4, :uchar) - fields = inference.call(image, confidence: 0.05, nms:, split_page:, + fields = inference.call(image, confidence: confidence * 0.1, nms:, split_page:, temperature:, aspect_ratio:, padding:) text_fields = extract_text_fields_from_page(page)