Fixs several problems found by static analysis

This commit is contained in:
Maksim Shabunin
2020-03-16 15:49:51 +03:00
parent 2a52e44bc6
commit 7e7bb3027c
4 changed files with 7 additions and 1 deletions
+2
View File
@@ -1593,6 +1593,8 @@ bool QRDetectMulti::checkPoints(const vector<Point2f>& quadrangle_points)
li2++;
}
}
if (count_w == 0)
return false;
double frac = double(count_b) / double(count_w);
double bottom_bound = 0.76;