diff --git a/modules/wechat_qrcode/src/zxing/qrcode/qrcode_reader.cpp b/modules/wechat_qrcode/src/zxing/qrcode/qrcode_reader.cpp index b6c4c4f71c0..c5f624e89c0 100644 --- a/modules/wechat_qrcode/src/zxing/qrcode/qrcode_reader.cpp +++ b/modules/wechat_qrcode/src/zxing/qrcode/qrcode_reader.cpp @@ -49,7 +49,8 @@ vector> QRCodeReader::decode(Ref image, DecodeHints hi Ref invertedMatrix = image->getInvertedMatrix(err_handler); if (err_handler.ErrCode() || invertedMatrix == NULL) return result_list; vector> tmp_rst = decodeMore(image, invertedMatrix, hints, err_handler); - if (err_handler.ErrCode() || tmp_rst.empty()) return tmp_rst; + if (err_handler.ErrCode() || tmp_rst.empty()) return result_list; + return tmp_rst; } return rst;