From 3c6c0426dfd8fefc574e8f2159f5e9b7198b1fb9 Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Thu, 1 Feb 2024 14:16:49 -0600 Subject: [PATCH] perf: reduce multi barcode scan depth --- src/multi/generic_multiple_barcode_reader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multi/generic_multiple_barcode_reader.rs b/src/multi/generic_multiple_barcode_reader.rs index 2420d0fb..f193f67c 100644 --- a/src/multi/generic_multiple_barcode_reader.rs +++ b/src/multi/generic_multiple_barcode_reader.rs @@ -64,8 +64,8 @@ impl MultipleBarcodeReader for GenericMultipleBarcodeReader { } } impl GenericMultipleBarcodeReader { - const MIN_DIMENSION_TO_RECUR: f32 = 2.0; - const MAX_DEPTH: u32 = 8; + const MIN_DIMENSION_TO_RECUR: f32 = 10.0; + const MAX_DEPTH: u32 = 4; pub fn new(delegate: T) -> Self { Self(delegate)