You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print('deCodeImg.py -i <imgParam> or deCodeImg.py -m <makeServer> -p <port>')
43
+
sys.exit(2)
44
+
foropt, arginopts:
45
+
ifopt=='-h':
46
+
print('deCodeImg.py -i <imgParam> or deCodeImg.py -m <makeServer> -p <port>')
47
+
sys.exit()
48
+
elifoptin ("-i", "--imgParam"):
49
+
imgParam=arg
50
+
print(deCodeImg(getImgBytes(imgParam)))
51
+
sys.exit()
52
+
elifoptin ("-m", "--makeServer"):
53
+
makeServer=True
54
+
elifoptin ("-p", "--port"):
55
+
port=arg
56
+
ifmakeServer==True:
57
+
print('--- DeCodeImg Server Started --- \nhttp://127.0.0.1:416/?img=c:/codeimg.png\nhttp://127.0.0.1:416/?img=http://a.a/codeimg.png\nhttp://127.0.0.1:416/?img=Base64 Data')
0 commit comments