代码拉取完成,页面将自动刷新
同步操作将从 cold/基于深度学习的车牌识别系统 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import tkinter as tk
from PIL import ImageTk,Image
from imgGUI import *
from vidGUI import *
import tkinter
def imgpro():
root.destroy()
win = Tk()
ww = 1000
wh = 600
img_gif = tkinter.PhotoImage(file="2.gif")
label_img = tkinter.Label(win, image=img_gif, width="1000", height="600")
label_img.place(x=0, y=0)
ImgWindow(win, ww, wh)
screenWidth, screenHeight = win.maxsize()
geometryParam = '%dx%d+%d+%d' % (
ww, wh, (screenWidth - ww) / 2, (screenHeight - wh) / 2)
win.geometry(geometryParam)
#win.protocol("WM_DELETE_WINDOW", ImgWindow.closeEvent)
win.mainloop()
def vidpro():
root.destroy()
win2 = Tk()
ww = 1000
wh = 600
img_gif = tkinter.PhotoImage(file="3.gif")
label_img = tkinter.Label(win2, image=img_gif, width="1000", height="600")
label_img.place(x=0, y=0)
VidWindow(win2, ww, wh)
screenWidth, screenHeight = win2.maxsize()
geometryParam = '%dx%d+%d+%d' % (
ww, wh, (screenWidth - ww) / 2, (screenHeight - wh) / 2)
win2.geometry(geometryParam)
#win2.protocol("WM_DELETE_WINDOW", VidWindow.closeEvent)
win2.mainloop()
root = tkinter.Tk()
root.title('车牌识别系统')
root.resizable(False, False)
windowWidth = 1000
windowHeight = 600
screenWidth, screenHeight = root.maxsize()
geometryParam = '%dx%d+%d+%d' % (
windowWidth, windowHeight, (screenWidth - windowWidth) / 2, (screenHeight - windowHeight) / 2)
root.geometry(geometryParam)
root.wm_attributes('-topmost', 1) # 窗口置顶
img_gif = tkinter.PhotoImage(file="1.gif")
label_img = tkinter.Label(root, image=img_gif, width = "1000",height = "600")
label_img.place(x=0, y=0)
textlabe = tkinter.Label(text = "基于cnn的车牌识别系统", fg="white",bg = 'midnightblue',
font=("微软雅黑", 28))
textlabe.place(x=310, y=40)
button = tkinter.Button(text = "图像处理",width = "10",height = "2",bg = "DimGray",command = imgpro)
button.place(x = 580,y = 500)
button = tkinter.Button(text = "视频处理",width = "10",height = "2",bg = "DimGray",command = vidpro)
button.place(x = 750,y = 500)
'''
team = tkinter.Label(text = "小组成员:", fg="black",
font=("微软雅黑", 18))
team.place(x=70, y=550)
teamlabe1 = tkinter.Label(text = "张嘉豪", fg="black",
font=("微软雅黑", 18))
teamlabe1.place(x=200, y=550)
teamlabe2 = tkinter.Label(text = "程乙航", fg="black",
font=("微软雅黑", 18))
teamlabe2.place(x=300, y=550)
teamlabe3 = tkinter.Label(text = "赵哲", fg="black",
font=("微软雅黑", 18))
teamlabe3.place(x=410, y=550)
'''
root.mainloop()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。