Skip to content

Commit

Permalink
fix: [qrcode extractor] filter code39
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Oct 2, 2024
1 parent 4dbda59 commit 7cf3c2c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/modules/QrCodeReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ def extract_qrcode(self, path):
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()}')

Expand Down

0 comments on commit 7cf3c2c

Please sign in to comment.