def toggle_cam(self): if len(self.cameras) > 1: self.processor.find_faces = True self.bpm_plot = False destroyWindow(self.plot_title) self.selected_cam += 1 self.selected_cam = self.selected_cam % len(self.cameras)
def toggle_display_plot(self): if self.bpm_plot: print("bpm plot disabled") self.bpm_plot = False destroyWindow(self.plot_title) else: print("bpm plot enabled") if self.processor.find_faces: self.toggle_search() self.bpm_plot = True self.make_bpm_plot() moveWindow(self.plot_title, self.w, 0)
def toggle_display_plot(self): """ Toggles the data display. """ if self.bpm_plot: print "bpm plot disabled" self.bpm_plot = False destroyWindow(self.plot_title) else: print "bpm plot enabled" self.bpm_plot = True self.make_bpm_plot() moveWindow(self.plot_title, self.w, 0)
def toggle_display_plot(self): """ Toggles the data display. """ if self.bpm_plot: print "bpm plot disabled" self.bpm_plot = False destroyWindow(self.plot_title) else: print "bpm plot enabled" self.bpm_plot = True self.make_bpm_plot() moveWindow(self.plot_title, self.w,0)
def toggle_display_plot(self): """ Toggles the data display. """ if self.bpm_plot: self.bpm_plot = False destroyWindow(self.plot_title) else: if self.processor.find_faces: self.toggle_search() self.bpm_plot = True self.make_bpm_plot() moveWindow(self.plot_title, 0, 0)
def toggle_display_plot(self): """ Toggles the data display. """ if self.bpm_plot: # print "bpm plot disabled" self.bpm_plot = False destroyWindow(self.plot_title) else: # print "bpm plot enabled" if self.processor.find_faces: self.toggle_search() self.bpm_plot = True self.make_bpm_plot() moveWindow(self.plot_title, self.w, 0)
def toggle_hbra_plot(self): """ Toggles the analysis plot """ if self.hbra_plot: print("hbra plot disabled") self.hbra_plot = False destroyWindow(self.hbra_plot_title) else: print("hbra plot enabled") if self.processor.find_faces: self.toggle_search() self.hbra_plot = True self.make_hbra_plot() #self.make_hbra_plott() #plotHBR(time.time(), self.processor.bpm, labels=["time", "bpm"], title=["HBRA plot"]) #plotterHBR() moveWindow(self.hbra_plot_title, self.w - 100, 0)