示例#1
0
 def __init__(self):
     test.load_ram()
     #lbp_face_recognition.train()
     #gabor_face_recognition.train()
     self.path = None
     self.clahedpath = None
     self.match_path = None
     self.videopath = None
     self.count = None
     self.fd1 = None
     self.fd2 = None
     self.fd3 = None
     self.fd4 = None
     self.fd5 = None
     self.fd = None
     self.fdset = {}
示例#2
0
    def run(self):
        print("video thread complete")
        textmovingcord = 20
        test.load_ram()
        for f in self.files:
            print(f)
            match = test.match_video(f)
            print(match)
            temp = match.split()
            
            print(temp[0]+"will be added in set")
            print(self.matchvideoset)
            self.matchvideoset.add(str(temp[0]))
            print("added in set")
            self.update_videorecog.emit(match)

        self.update_set.emit(self.matchvideoset)
示例#3
0
    def __init__(self, master):

        frame = Frame(master)
        frame.pack()
        self.root = frame
        test.load_ram()

        self.quit_button = Button(frame, text="QUIT", fg="red", command=frame.quit)
        self.quit_button.pack(side=LEFT)

        self.update_btn = Button(frame, text="Update", command=self.update_text)
        self.update_btn.pack(side=LEFT)
        self.text_label = Label(frame)
        self.text_label.config(text='No message')
        self.text_label.pack(side=RIGHT)
        self.text_input = Entry(frame, width=40)
        self.text_input.pack(side=RIGHT)
    def run(self):
        print("video thread complete")
        textmovingcord = 20
        test.load_ram()
        den = len(self.files)
        num = 0

        for f in self.files:
            num += 1
            print(f)
            match = test.match_video(f)
            print(match)
            temp = match.split()

            print(temp[0] + "will be added in set")
            print(self.matchvideoset)
            self.matchvideoset.add(str(temp[0]))
            print("added in set")
            self.update_videorecog.emit(match)
            self.update_percentage.emit(int((num / den) * 100))
    def __init__(self, parent=None):
        super(MainUIClass, self).__init__(parent)
        test.load_ram()
        self.setupUi(self)
        self.path = None
        self.clahedpath = None
        self.match_path = None
        self.videopath = None
        self.count = None
        self.movingcord = 20
        self.textmovingcord = 20
        self.videoset = set()

        self.newvideoset = set()

        self.selectimage.clicked.connect(self.selectimage_handler)
        self.process.clicked.connect(self.processClick)
        self.extractfaces.clicked.connect(self.extractfaces_img)
        self.selectvideo.clicked.connect(self.selectvideofile)
        self.extractfaces_2.clicked.connect(self.extract_videofaces)
        self.processagain.clicked.connect(self.processagainclahe)
        self.extractuniquefaces.clicked.connect(self.extractuniquefaces_video)
        self.finddetails.clicked.connect(self.finddetailsfn)
示例#6
0
def bluetooth_loop(thread_queue=None, text_input=""):
	text_input = test.match_pathpack(text_input)
	thread_queue.put(text_input)
	test.load_ram()