Update dimension ratio change to new location (updates DMRE PR #323) (#1350)

* Update dimension ratio change to new location

* changing threshold to 6

as discussed in #1350
This commit is contained in:
dehnhard 2021-01-19 20:40:59 +01:00 committed by GitHub
parent 395dc6b83f
commit 4426711598
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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