mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
C# port, QRCode finder pattern update based on r814 update
git-svn-id: https://zxing.googlecode.com/svn/trunk@819 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
54164f7cce
commit
57afc8d154
|
@ -408,10 +408,10 @@ namespace com.google.zxing.qrcode.detector
|
||||||
// How far down can we skip before resuming looking for the next
|
// How far down can we skip before resuming looking for the next
|
||||||
// pattern? In the worst case, only the difference between the
|
// pattern? In the worst case, only the difference between the
|
||||||
// difference in the x / y coordinates of the two centers.
|
// difference in the x / y coordinates of the two centers.
|
||||||
// This is the case where you find top left first. Draw it out.
|
// This is the case where you find top left last.
|
||||||
hasSkipped = true;
|
hasSkipped = true;
|
||||||
return (int) (Math.Abs(firstConfirmedCenter.getX() - center.getX()) -
|
return (int) (Math.Abs(firstConfirmedCenter.getX() - center.getX()) -
|
||||||
Math.Abs(firstConfirmedCenter.getY() - center.getY()));
|
Math.Abs(firstConfirmedCenter.getY() - center.getY())) / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue