mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
* Update dimension ratio change to new location * changing threshold to 6 as discussed in #1350
This commit is contained in:
parent
395dc6b83f
commit
4426711598
|
@ -71,7 +71,7 @@ public final class Detector {
|
|||
dimensionRight += 1;
|
||||
}
|
||||
|
||||
if (4 * dimensionTop < 7 * dimensionRight && 4 * dimensionRight < 7 * dimensionTop) {
|
||||
if (4 * dimensionTop < 6 * dimensionRight && 4 * dimensionRight < 6 * dimensionTop) {
|
||||
// The matrix is square
|
||||
dimensionTop = dimensionRight = Math.max(dimensionTop, dimensionRight);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue