mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Vladimir's fix for a small typo in rect detection
git-svn-id: https://zxing.googlecode.com/svn/trunk@2239 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
65efebdc97
commit
758c9c38c4
|
@ -276,7 +276,7 @@ public final class Detector {
|
|||
|
||||
ResultPoint c1 = new ResultPoint(topRight.getX() + corr * cos, topRight.getY() + corr * sin);
|
||||
|
||||
corr = distance(bottomLeft, bottomRight) / (float) dimension;
|
||||
corr = distance(bottomLeft, topLeft) / (float) dimension;
|
||||
norm = distance(bottomRight, topRight);
|
||||
cos = (topRight.getX() - bottomRight.getX()) / norm;
|
||||
sin = (topRight.getY() - bottomRight.getY()) / norm;
|
||||
|
|
Loading…
Reference in a new issue