From a66a046a4debbcc79133fda180e6a5f9a4217369 Mon Sep 17 00:00:00 2001 From: Daniel Cleaver Date: Sun, 3 May 2026 21:53:27 -0400 Subject: [PATCH] detect_text_pixels: Edit comment The caller applies the threshold, not this function. --- ocrs/src/detection.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ocrs/src/detection.rs b/ocrs/src/detection.rs index e262bc9..59722f3 100644 --- a/ocrs/src/detection.rs +++ b/ocrs/src/detection.rs @@ -183,8 +183,7 @@ impl TextDetector { let text_mask: Tensor = self.model.run(image.view(), Some(opts))?; - // Resize probability mask to original input size and apply threshold to get a - // binary text/not-text mask. + // Resize probability mask to original input size. let text_mask = text_mask .slice(( ..,