fix wrong condition check

pull/17084/head
Tomoaki Teshima 5 years ago
parent 8c77f35fce
commit c2e484a465
  1. 2
      modules/objdetect/src/qrcode.cpp

@ -32,7 +32,7 @@ static bool checkQRInputImage(InputArray img, Mat& gray)
return false; // image data is not enough for providing reliable results return false; // image data is not enough for providing reliable results
} }
int incn = img.channels(); int incn = img.channels();
CV_Check(incn, incn == 1 || incn == 3 || incn == 3, ""); CV_Check(incn, incn == 1 || incn == 3 || incn == 4, "");
if (incn == 3 || incn == 4) if (incn == 3 || incn == 4)
{ {
cvtColor(img, gray, COLOR_BGR2GRAY); cvtColor(img, gray, COLOR_BGR2GRAY);

Loading…
Cancel
Save