From 7cf3c2c8652f268d54c6a3ca7c16b2375c9d78e4 Mon Sep 17 00:00:00 2001 From: terrtia Date: Wed, 2 Oct 2024 16:54:33 +0200 Subject: [PATCH] fix: [qrcode extractor] filter code39 --- bin/modules/QrCodeReader.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/modules/QrCodeReader.py b/bin/modules/QrCodeReader.py index a83a7f92..00b50132 100755 --- a/bin/modules/QrCodeReader.py +++ b/bin/modules/QrCodeReader.py @@ -60,9 +60,10 @@ class QrCodeReader(AbstractModule): try: decodeds = decode(image) for decoded in decodeds: - qr_codes = True - if decoded.data: - contents.append(decoded.data.decode()) + if decoded.type == 'QRCODE': + qr_codes = True + if decoded.data: + contents.append(decoded.data.decode()) except ValueError as e: self.logger.error(f'{e}: {self.obj.get_global_id()}')