mirror of https://github.com/CIRCL/AIL-framework
fix: [qrcode extractor] filter code39
parent
4dbda5975a
commit
7cf3c2c865
|
@ -60,9 +60,10 @@ class QrCodeReader(AbstractModule):
|
||||||
try:
|
try:
|
||||||
decodeds = decode(image)
|
decodeds = decode(image)
|
||||||
for decoded in decodeds:
|
for decoded in decodeds:
|
||||||
qr_codes = True
|
if decoded.type == 'QRCODE':
|
||||||
if decoded.data:
|
qr_codes = True
|
||||||
contents.append(decoded.data.decode())
|
if decoded.data:
|
||||||
|
contents.append(decoded.data.decode())
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
self.logger.error(f'{e}: {self.obj.get_global_id()}')
|
self.logger.error(f'{e}: {self.obj.get_global_id()}')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue