fix valid y range (#1430)

This commit is contained in:
MakKi (makki_d) 2021-09-06 01:57:11 +09:00 committed by GitHub
parent aeeec7b07f
commit f04ab98f97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -550,7 +550,7 @@ public final class Detector {
}
private boolean isValid(int x, int y) {
return x >= 0 && x < image.getWidth() && y > 0 && y < image.getHeight();
return x >= 0 && x < image.getWidth() && y >= 0 && y < image.getHeight();
}
private boolean isValid(ResultPoint point) {