fix: [qrcode extractor] filter code39

pull/607/merge
terrtia 2024-10-02 16:54:33 +02:00
parent 4dbda5975a
commit 7cf3c2c865
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 4 additions and 3 deletions

View File

@ -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()}')