-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.py
More file actions
executable file
·27 lines (26 loc) · 925 Bytes
/
Main.py
File metadata and controls
executable file
·27 lines (26 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
import Image_barcode
import camera_barcode
print("================== Barcode Scanner ==================")
print("A VivinMeth Product")
print("version: v2-beta")
loop = 1
while (loop == 1):
print("=====================================================")
print("Choose:\n1. Image\n2. Realtime")
x = int(input(":"))
if x == 1:
print("=====================================================")
fil = input("")
Image_barcode.scan(fil)
elif x == 2:
print("=====================================================")
camera_barcode.scan(fil)
elif x == 3:
print("=====================================================")
print("Exiting Program")
print("=====================================================")
exit()
else:
print("=====================================================")
print("Wrong input try again")