Пример #1
0
 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)
Пример #2
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)