-
Notifications
You must be signed in to change notification settings - Fork 6
/
GuiForSetting.py
70 lines (36 loc) · 1.75 KB
/
GuiForSetting.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
import tkinter
from tkinter import *
from tkinter import messagebox
import sys
import os
def loadVideos():
os.system('python understand_site.py')
def makeData():
os.system('python create_data.py')
def edgeDetection():
os.system('python edge_detection.py')
def trainModel():
messagebox.showwarning("TRAINING", "Only use if location of CCTV is changed. It will take a lot of time to be completed")
os.system('python cnn_model.py')
def prediction():
os.system('python prediction.py')
def book():
os.system('python GuiForBooking.py')
k=tkinter.Tk()
k.title("Parking system")
k["bg"] = "black"
label=Label(k,text="Options Available",bg="black",fg="red")
label.grid(row=2)
button=tkinter.Button(k,text="Load Video(1)",width=20,height=2,font="Helvetica 10 italic bold",bg="black",fg="red",command=loadVideos)
button.grid(row=6,sticky=W,column=0)
button=tkinter.Button(k,text="Make Data(2)",width=20,height=2,font="Helvetica 10 italic bold",bg="black",fg="red",command=makeData)
button.grid(row=6,sticky=W,column=3)
button=tkinter.Button(k,text="Edge Detection(3)",width=20,height=2,font="Helvetica 10 italic bold",bg="black",fg="red",command=edgeDetection)
button.grid(row=8,sticky=W,column=0)
button=tkinter.Button(k,text="Train Model(!!)",width=20,height=2,font="Helvetica 10 italic bold",bg="black",fg="red",command=trainModel)
button.grid(row=8,sticky=W,column=3)
button=tkinter.Button(k,text="Prediction(4)",width=20,height=2,font="Helvetica 10 italic bold",bg="black",fg="red",command=prediction)
button.grid(row=10,sticky=W,column=0)
button=tkinter.Button(k,text="Booking(5)",width=20,height=2,font="Helvetica 10 italic bold",bg="black",fg="red",command=book)
button.grid(row=10,sticky=W,column=3)
button.mainloop()