-
Notifications
You must be signed in to change notification settings - Fork 1
/
errorda.py
70 lines (55 loc) · 1.55 KB
/
errorda.py
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import Tkinter as tk
import cv2
from subprocess import call
root = tk.Tk()
frame = tk.Frame(root)
frame.pack()
def take():
call(["python","cap.py"])
print"completed"
def video():
call(["python","picam.txt"])
print"video completed"
def record():
call(["python", "record.py"])
print"Recorded and file stored"
def poacher():
call(["python", "face_rec.py"])
print"Poacher Detection Begin..."
def train():
call(["python", "train.py"])
print"Training of faces begin"
def gps():
call(["sudo", "python", "gps.py"])
print"The Coordinates -"
button = tk.Button(frame,
text="Quit",
fg="red",
command=quit)
button.pack(side=tk.BOTTOM)
button = tk.Button(frame,
text="Take Picture",
fg="red",command=take
)
button.pack(side=tk.BOTTOM)
button = tk.Button(frame,
text="Live Feed",
fg="red",command=video)
button.pack(side=tk.BOTTOM)
button = tk.Button(frame,
text="Record Video",
fg="red",command=record)
button.pack(side=tk.BOTTOM)
button = tk.Button(frame,
text="Poacher Detection",
fg="red",command=poacher)
button.pack(side=tk.BOTTOM)
button = tk.Button(frame,
text="Train Poacher to Camcalt",
fg="red",command=train)
button.pack(side=tk.BOTTOM)
button = tk.Button(frame,
text="GPS Location",
fg="red",command=gps)
button.pack(side=tk.LEFT)
root.mainloop()