mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 05:56:36 +08:00
Merge pull request #17084 from tomoaki0705:fixQRInputCheck
This commit is contained in:
commit
dcec3150f0
@ -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…
Reference in New Issue
Block a user