mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
begin cleanup
This commit is contained in:
@@ -61,8 +61,15 @@ pub fn FindFinderPatterns(image: &BitMatrix, tryHarder: bool) -> FinderPatterns
|
||||
let mut next: PatternView = PatternView::new(&row);
|
||||
|
||||
while {
|
||||
let next = FindLeftGuard(&next, 0, &PATTERN, 0.5).unwrap();
|
||||
next.isValid()
|
||||
if let Ok(next) = FindLeftGuard(&next, 0, &PATTERN, 0.5) {
|
||||
next.isValid()
|
||||
}else {
|
||||
false
|
||||
}
|
||||
// let Ok(next) = FindLeftGuard(&next, 0, &PATTERN, 0.5) else {
|
||||
// break;
|
||||
// };
|
||||
// next.isValid()
|
||||
} {
|
||||
let p = point(
|
||||
next.pixelsInFront() as f32
|
||||
|
||||
Reference in New Issue
Block a user