Exemplo n.º 1
0
 def __init__(self):
     self.gp = GestureProcessor("Gesture_data.txt")  # default to usual file
     self.width = 1366
     self.height = 768
     super(GestureDemo, self).__init__(width=self.width, height=self.height)
     self.timerDelay = 1000 / 30  # 30 FPS
     # self.bindGestures()
     self.CVHandles = []
     self.bgHandle = None
     self.trackCenter = False
     self.trail = False
Exemplo n.º 2
0
 def __init__(self):
 	self.write_path_to_file = False
     self.gp = GestureProcessor("Gesture_data.txt")  # default to usual file
     self.width = HEIGHT
     self.height = WIDTH
     super(GestureDemo, self).__init__(width=self.width, height=self.height)
     self.timerDelay = 1000 / 20 # 20 FPS
     self.CVHandles = []
     self.bgHandle = None
     self.trackCenter = False
     self.trail = False
Exemplo n.º 3
0
    def __init__(self):
        ap = argparse.ArgumentParser()
        ap.add_argument('--video',
                        default=False,
                        action='store_true',
                        help='use for video?')
        args = ap.parse_args()
        is_video = int(args.video)

        self.gp = GestureProcessor("Gesture_data.txt",
                                   is_video)  # default to usual file

        self.width = 1366
        self.height = 768
        super(GestureDemo, self).__init__(width=self.width, height=self.height)
        self.timerDelay = 1000 / 30  # 30 FPS
        # self.bindGestures()
        self.CVHandles = []
        self.bgHandle = None
        self.trackCenter = False
        self.trail = False