mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
all tests but 7 (SA) and inverted pass
This commit is contained in:
@@ -430,7 +430,7 @@ pub fn LocateAlignmentPattern(
|
||||
// #endif
|
||||
let cor = CenterOfRing(
|
||||
image,
|
||||
estimate + moduleSize as f32 * 2.25 * d,
|
||||
(estimate + moduleSize as f32 * 2.25 * d).floor(),
|
||||
moduleSize * 3,
|
||||
1,
|
||||
false,
|
||||
@@ -441,7 +441,7 @@ pub fn LocateAlignmentPattern(
|
||||
continue;
|
||||
}
|
||||
|
||||
if let Some(cor1) = CenterOfRing(image, cor.unwrap(), moduleSize, 1, true) {
|
||||
if let Some(cor1) = CenterOfRing(image, cor.unwrap().floor(), moduleSize, 1, true) {
|
||||
if let Some(cor2) = CenterOfRing(image, cor.unwrap().floor(), moduleSize * 3, -2, true)
|
||||
{
|
||||
if Point::distance(cor1, cor2) < moduleSize as f32 / 2.0 {
|
||||
|
||||
Reference in New Issue
Block a user