from Reader import READER reader = READER() reader.Draw_Gestures()
from Reader import READER reader = READER()
import pickle import numpy as np from Reader import READER from pygameWindow_De103 import PYGAME_WINDOW pw = PYGAME_WINDOW() reader = READER(pw) reader.Print_Gestures() reader.Draw_Gestures() # reader.Restart_Directory()
import numpy as np from Reader import READER reader = READER() reader.Draw_Each_Gesture_Once("userData/test3.p") # reader.Draw_Gestures() # reader.Print_Gestures()
return np.concatenate((flippedSet,set),axis=3) def CenterData(set): for i in range(6): set[:,:,i,:] = set[:,:,i,:] - set[:,:,i,:].mean() return set train2 = flipData(CenterData(train2)) train3 = flipData(CenterData(train3)) test2 = flipData(CenterData(test2)) test3 = flipData(CenterData(test3)) # Draw them from Reader import READER reader = READER() print("train2") for gestureNumber in range(samplesPerSet): if(gestureNumber % 100 == 0): gesture = train2[:,:,:,gestureNumber] reader.Draw_Gesture(gesture) print("test2") for gestureNumber in range(samplesPerSet): if(gestureNumber % 100 == 0): gesture = test2[:,:,:,gestureNumber] reader.Draw_Gesture(gesture) print("train3") for gestureNumber in range(samplesPerSet): if(gestureNumber % 100 == 0): gesture = train3[:,:,:,gestureNumber] reader.Draw_Gesture(gesture)
import sys sys.path.insert(0, '..') from Recorder import RECORDER import pygame from pygameWindow_De103 import PYGAME_WINDOW from constants import pygameWindowDepth, pygameWindowWidth from Reader import READER pw = PYGAME_WINDOW() x = pygameWindowWidth - pw.screen.get_width() // 2 y = pygameWindowDepth - pw.screen.get_height() // 2 xMin = 1000.0 xMax = -1000.0 yMin = 1000.0 yMax = -1000.0 reader = READER(pw) reader.Restart_Directory() deliverable = RECORDER(pw, x, y, xMin, xMax, yMin, yMax) deliverable.Run_Forever() exit()
import numpy as np import pickle from Reader import READER reader = READER() reader.Print_Gestures()
import numpy as np import pickle from Reader import READER from pygameWindow_Del03 import PYGAME_WINDOW import os new_reader = READER(PYGAME_WINDOW()) new_reader.Draw_Gestures()
from Reader import READER newReader = READER() newReader.Draw_Gestures()
""" CS228: Human Computer Interaction Deliverable 3: Drawing skeletons of hands with pyGame and LeapMotion """ import numpy as np import pickle from Reader import READER DataReader = READER() DataReader.Load_Data('userData')
import numpy import pickle from Reader import READER reader_instance = READER() reader_instance.Draw_Gestures()
from Reader import READER Reader = READER() Reader.Record_Files() Reader.Draw_Gestures()