def setdefault(self, index): cv2.createTrackbar( 'Win Height %s' % str(index), variables.app_window_trackbar_name_2, self.background.win_height, 100, self.setwinheight) cv2.createTrackbar( 'Win Width %s' % str(index), variables.app_window_trackbar_name_2, self.background.win_width, 100, self.setwinwidth) cv2.createTrackbar( 'Min Pix Win %s' % str(index), variables.app_window_trackbar_name_2, self.background.win_min_pix, 500, self.setminpixwin)
def setdefault(self): cv2.createTrackbar( 'Option', variables.app_window_trackbar_name, self.bg.option, 9, self.setoption) cv2.createTrackbar( 'Beta', variables.app_window_trackbar_name, int(self.bg.beta * 10), 10, self.setbeta) cv2.createTrackbar( 'Frame Count', variables.app_window_trackbar_name, self.bg.frame_count, 100, self.setframecount) cv2.createTrackbar( 'Threshold 1', variables.app_window_trackbar_name, self.bg.threshold_1, 100, self.setthreshold1) cv2.createTrackbar( 'Threshold 2', variables.app_window_trackbar_name, self.bg.threshold_2, 100, self.setthreshold2) cv2.createTrackbar( 'Frame by frame', variables.app_window_trackbar_name, self.framebyframe, 1, self.setframebyframe) cv2.createTrackbar( 'Frame Delay', variables.app_window_trackbar_name, self.bg.waitkey, 1000, self.setwaitkey)