detector ported, no tests

This commit is contained in:
Henry Schimke
2022-10-08 10:48:16 -05:00
parent a205e1e08b
commit 50a675c693
7 changed files with 539 additions and 415 deletions

View File

@@ -23,8 +23,8 @@ use crate::{RXingResultPoint, ResultPoint};
*
* @author Sean Owen
*/
#[derive(Debug,Clone, Copy,PartialEq)]
pub struct FinderPattern {
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct FinderPattern {
estimatedModuleSize: f32,
count: usize,
point: (f32, f32),
@@ -38,6 +38,10 @@ impl ResultPoint for FinderPattern {
fn getY(&self) -> f32 {
self.point.1
}
fn into_rxing_result_point(self) -> RXingResultPoint {
RXingResultPoint { x: self.point.0, y: self.point.1 }
}
}
impl FinderPattern {