我需要用Qt识别pdf417码,使用了QZXing库
代码如下:
QZXing decoder;
if(codeType == BARCODE_TYPE_QRCODE)
{
decoder.setDecoder( QZXing::DecoderFormat_QR_CODE );
}
else
{
decoder.setDecoder( QZXing::DecoderFormat_PDF_417);
}
decoder.setSourceFilterType(QZXing::SourceFilter_ImageNormal);
decoder.setTryHarderBehaviour(QZXing::TryHarderBehaviour_ThoroughScanning | QZXing::TryHar derBehaviour_Rotate);
retMsg = decoder.decodeImage(imageToDecode);
编译未报错,但我这里 retMsg的是空的,请问问题出在哪里呢?
我尝试过QZXing::DecoderFormat_PDF_417所有的的格式,均无法识别
望采纳
你可能需要检查一下您的图像是否能正常被解码。