perf: reduce multi barcode scan depth

This commit is contained in:
Henry Schimke
2024-02-01 14:16:49 -06:00
parent 13c5bb5916
commit 3c6c0426df

View File

@@ -64,8 +64,8 @@ impl<T: Reader> MultipleBarcodeReader for GenericMultipleBarcodeReader<T> {
}
}
impl<T: Reader> GenericMultipleBarcodeReader<T> {
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)