mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-25 23:37:16 +00:00
fix: [qrcode extractor] filter code39
This commit is contained in:
parent
4dbda5975a
commit
7cf3c2c865
1 changed files with 4 additions and 3 deletions
|
@ -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()}')
|
||||
|
||||
|
|
Loading…
Reference in a new issue