-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmanage.py
More file actions
28 lines (22 loc) · 750 Bytes
/
manage.py
File metadata and controls
28 lines (22 loc) · 750 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
28
import sys
import gesture_recognition
def show_help():
print("Help:")
print("Arguments are needed to be given like this:")
print("\t python manage.py [camera index] [operation]\n")
print("Operations")
print("\t-c\t Simple Calculator Using Sign Language.")
print("\t-d\t ASL Digit Regontion.")
print("\t-a\t ASL Alphabet Recognition")
if(len(sys.argv)>1):
camera_index = sys.argv[1]
operation = sys.argv[2]
if(operation == "-c" or operation == "-d" or operation == "-a"):
gesture_recognition.manage(camera_index, operation)
else:
if(operation != "-h"):
print("Sorry Wrong Arguments")
show_help()
else:
print("No arguments are given")
show_help()