Skip to content

Commit

Permalink
fix: [qrcode extractor] filter invalid image
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Oct 2, 2024
1 parent ee02a72 commit 86af7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/modules/QrCodeReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def extract_qrcode(self, path):
image = cv2.cvtColor(cv2.imread(path), cv2.COLOR_BGR2RGB)
except cv2.error:
self.logger.warning(f'Invalid image: {self.obj.get_global_id()}')
return []
return False, []

try:
decodeds = decode(image)
Expand Down

0 comments on commit 86af7dd

Please sign in to comment.