initial commit

This commit is contained in:
2023-10-12 23:51:14 +03:00
commit 56792b892d
16 changed files with 254 additions and 0 deletions

9
scanner/utils.py Normal file
View File

@@ -0,0 +1,9 @@
from scanner.enums import CodeType
def guess_code_type(string_value: str) -> CodeType:
if string_value.isdigit():
return CodeType.BARCODE
if string_value:
return CodeType.QRCODE
return CodeType.INVALID