Skip to content

Commit

Permalink
wechat_qrcode: fix ineffective decoding retrial after inverting image
Browse files Browse the repository at this point in the history
  • Loading branch information
Doekin committed Oct 26, 2024
1 parent 80f1ca2 commit a83259f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/wechat_qrcode/src/zxing/qrcode/qrcode_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ vector<Ref<Result>> QRCodeReader::decode(Ref<BinaryBitmap> image, DecodeHints hi
Ref<BitMatrix> invertedMatrix = image->getInvertedMatrix(err_handler);
if (err_handler.ErrCode() || invertedMatrix == NULL) return result_list;
vector<Ref<Result>> 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;
Expand Down

0 comments on commit a83259f

Please sign in to comment.