Skip to content

Commit

Permalink
Merge pull request opencv#17084 from tomoaki0705:fixQRInputCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Apr 16, 2020
2 parents d015db3 + c2e484a commit dcec315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/objdetect/src/qrcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static bool checkQRInputImage(InputArray img, Mat& gray)
return false; // image data is not enough for providing reliable results
}
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)
{
cvtColor(img, gray, COLOR_BGR2GRAY);
Expand Down

0 comments on commit dcec315

Please sign in to comment.