def _resultProducer(self, audio, abortEvent): """Pretend to be a complex worker function or something that takes long time to run due to network access etc. GUI will freeze if this method is not called in separate thread.""" # import time # count = 0 # while not abortEvent() and count < 50: # time.sleep(0.1) # count += 1 # return jobID audio = 'C:\Users\Mario\Desktop\hito2\\15042015SER\prueba\\20150415060004.wav' lista_anuncios = reconocedor_mayo.reconocedor(audio) return lista_anuncios
def resultProducer(self, audio,): """Pretend to be a complex worker function or something that takes long time to run due to network access etc. GUI will freeze if this method is not called in separate thread.""" # import time # count = 0 # while not abortEvent() and count < 50: # time.sleep(0.1) # count += 1 # return jobID global lista_anuncios lista_anuncios = reconocedor_mayo.reconocedor(audio) return lista_anuncios
def resultProducer(self, audio,djv): """Pretend to be a complex worker function or something that takes long time to run due to network access etc. GUI will freeze if this method is not called in separate thread.""" # import time # count = 0 # while not abortEvent() and count < 50: # time.sleep(0.1) # count += 1 # return jobID global lista_anuncios message = "Analizando el archivo %s en busca de anuncios" %str(self.currentFile) busy = PBI.PyBusyInfo(message, parent=None, title="Procesando") time.sleep(5) del busy lista_anuncios = reconocedor_mayo.reconocedor(audio, djv) return lista_anuncios
def reconocer_huellas(self): ''' evento de recoger limites para hacer un fingerprint :param event: :return: ''' # BBDD config = { "database": { "host": "127.0.0.1", "user": "******", "passwd": "12345", "db": "captor4", }, "database_type": "mysql" } djv = Dejavu(config) lista_anuncios=reconocedor_mayo.reconocedor(self.currentFile) return lista_anuncios