ftylitak / qzxing

Qt/QML wrapper library for the ZXing library. 1D/2D barcode image processing library
Apache License 2.0
614 stars 338 forks source link

pdf417 Fail #228

Open mynamecxy opened 1 year ago

mynamecxy commented 1 year ago
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::TryHarderBehaviour_Rotate);

retMsg = decoder.decodeImage(imageToDecode);

heip:retMsg is NULL when I use QZXing::DecoderFormat_PDF_417!

QZXing version is 3.3.0; Qt version is 5.9.9 + VS2015 I tried, except PDF417,all ok!