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:
srowen 2012-03-29 18:21:44 +00:00
parent 65efebdc97
commit 758c9c38c4

View file

@ -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;