赞
踩
#-*- coding: utf-8 -*-
__author__ = '樱花落舞'
importtkinter as tkfrom tkinter.filedialog import *
from tkinter importttkimportimg_function as predictimportcv2from PIL importImage, ImageTkimportthreadingimporttimeimportimg_mathimporttracebackimportdebugimportconfigfrom threading importThreadclassThreadWithReturnValue(Thread):def __init__(self, group=None, target=None, name=None, args=(), kwargs=None, *, daemon=None):
Thread.__init__(self, group, target, name, args, kwargs, daemon=daemon)
self._return1=None
self._return2=None
self._return3=Nonedefrun(self):if self._target is notNone:
self._return1,self._return2,self._return3= self._target(*self._args, **self._kwargs)defjoin(self):
Thread.join(self)returnself._return1,self._return2,self._return3classSurface(ttk.Frame):
pic_path= ""viewhigh= 600viewwide= 600update_time=0
thread=None
thread_run=False
camera=None
color_transform= {"green": ("绿牌", "#55FF55"), "yello": ("黄牌", "#FFFF00"), "blue": ("蓝牌", "#6666FF")}def __init__(self, win):
ttk.Frame.__init__(self, win)
frame_left=ttk.Frame(self)
frame_right1=ttk.Frame(self)
frame_right2=ttk.Frame(self)
win.title("车牌识别")
win.state("zoomed")
self.pack(fill=tk.BOTH, expand=tk.YES, padx="10", pady="10")
frame_left.pack(side=LEFT, expand=1, fill=BOTH)
frame_right1.pa
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。