diff --git a/src/qzxing.cpp b/src/qzxing.cpp index 7d171c6..43e5ff0 100644 --- a/src/qzxing.cpp +++ b/src/qzxing.cpp @@ -194,7 +194,7 @@ QString QZXing::decodeImage(const QImage &image, int maxWidth, int maxHeight, bo if ((maxWidth > 0) || (maxHeight > 0)) ciw = CameraImageWrapper::Factory(image, maxWidth, maxHeight, smoothTransformation); else - ciw = new CameraImageWrapper(image); + ciw = CameraImageWrapper::Factory(image, 999, 999, true); Ref imageRef(ciw); GlobalHistogramBinarizer *binz = new GlobalHistogramBinarizer(imageRef); diff --git a/tests/src/QZXingTests/DecodeValidator.cpp b/tests/src/QZXingTests/DecodeValidator.cpp index e0cc880..4b9840d 100644 --- a/tests/src/QZXingTests/DecodeValidator.cpp +++ b/tests/src/QZXingTests/DecodeValidator.cpp @@ -51,7 +51,7 @@ std::shared_ptr DecodeValidator::testDecodeWithExpectedOutput(Q decoder.setDecoder(enabledDecoder); - QString result = decoder.decodeImage(imageToDecode, 999, 999, true); + QString result = decoder.decodeImage(imageToDecode); stats_->setElaspedTime(decoder.getProcessTimeOfLastDecoding()); stats_->setOperationSuccess(result != "");