qrcode multi detector port

This commit is contained in:
Henry Schimke
2022-11-28 17:50:58 -06:00
parent baa8406855
commit 5273136c96
4 changed files with 314 additions and 261 deletions

View File

@@ -37,10 +37,10 @@ pub struct FinderPatternFinder {
resultPointCallback: Option<RXingResultPointCallback>,
}
impl FinderPatternFinder {
const CENTER_QUORUM: usize = 2;
pub const CENTER_QUORUM: usize = 2;
// private static final EstimatedModuleComparator moduleComparator = new EstimatedModuleComparator();
const MIN_SKIP: u32 = 3; // 1 pixel/module times 3 modules/center
const MAX_MODULES: u32 = 97; // support up to version 20 for mobile clients
pub const MIN_SKIP: u32 = 3; // 1 pixel/module times 3 modules/center
pub const MAX_MODULES: u32 = 97; // support up to version 20 for mobile clients
/**
* <p>Creates a finder that will search the image for three finder patterns.</p>