-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
QRCodeDetector::decodeMulti() invalid usage of .fixedType() #19363
Copy link
Copy link
Closed
Description
.fixedType() should be used with external arguments only.
Code:
vector<Mat> tmp_straight_qrcodes;
if (straight_qrcode.needed())
{
for (size_t i = 0; i < straight_barcode.size(); i++)
{
Mat tmp_straight_qrcode;
tmp_straight_qrcodes.push_back(tmp_straight_qrcode);
straight_barcode[i].convertTo(((OutputArray)tmp_straight_qrcodes[i]),
((OutputArray)tmp_straight_qrcodes[i]).fixedType() ?
((OutputArray)tmp_straight_qrcodes[i]).type() : CV_32FC2);
relates #15338
Reactions are currently unavailable