Fixs several problems found by static analysis

pull/16826/head
Maksim Shabunin 5 years ago
parent 8f49b820db
commit d4d95bd70d
  1. 1
      modules/features2d/src/kaze/AKAZEFeatures.cpp
  2. 2
      modules/objdetect/src/qrcode.cpp

@ -1323,6 +1323,7 @@ void quantized_counting_sort(const float a[], const int n,
const float quantum, const int nkeys,
int idx[/*n*/], int cum[/*nkeys + 1*/])
{
CV_Assert(nkeys > 0);
memset(cum, 0, sizeof(cum[0]) * (nkeys + 1));
// Count up the quantized values

@ -1608,6 +1608,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;

Loading…
Cancel
Save