QZXing 识别不出条形码 / 二维码

解决方法是设定一下QZXing解码器设置:code

decoder.setDecoder(QZXing::DecoderFormat_QR_CODE | QZXing::DecoderFormat_CODE_128);

限定了识别的范围,识别率就高了。orm

另外有些二维码图片为png,有透明色,也会致使识别失败,把透明色换成白色便可。图片

相关文章
相关标签/搜索