def snapshot(self): camera = Camera.get_instance() pos = self.script.find('.shef') path = 'log/' + self.script[0:pos] + '/' if not os.path.exists(path): os.mkdir(path) name = path + str(time.time()) + '.jpg' camera.save_frame(name)
def __init__(self, img): self.img = img self.quit = False self.camera = Camera.get_instance() #super(UpdateImg, self).__init__() self.stoprequest = False
def h_btnCapture__clicked(self, wdg): camera = Camera.get_instance() name = 'snapshot/' + str(time.time()) + '.jpg' camera.save_frame(name)