From df627e1281ba499f3b9b26b3c429195644d36145 Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Wed, 3 Apr 2024 16:58:46 +0300 Subject: [PATCH] Resolve valgrind issue at QRCode detector --- modules/objdetect/src/qrcode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/objdetect/src/qrcode.cpp b/modules/objdetect/src/qrcode.cpp index 8497733ac3..b6350b83e6 100644 --- a/modules/objdetect/src/qrcode.cpp +++ b/modules/objdetect/src/qrcode.cpp @@ -2936,7 +2936,8 @@ QRDecode::QRDecode(bool _useAlignmentMarkers): useAlignmentMarkers(_useAlignmentMarkers), version(0), version_size(0), - test_perspective_size(0.f) + test_perspective_size(0.f), + mode(QRCodeEncoder::EncodeMode::MODE_AUTO) {} std::string ImplContour::decode(InputArray in, InputArray points, OutputArray straight_qrcode) const {