示例#1
0
from Reader import READER

reader = READER()
reader.Draw_Gestures()
示例#2
0
文件: Del03b.py 项目: jagiroux/CS228
from Reader import READER

reader = READER()
示例#3
0
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()
示例#4
0
import numpy as np

from Reader import READER

reader = READER()
reader.Draw_Each_Gesture_Once("userData/test3.p")
# reader.Draw_Gestures()
# reader.Print_Gestures()
示例#5
0
    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)
示例#6
0
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()
示例#7
0
import numpy as np
import pickle
from Reader import READER

reader = READER()

reader.Print_Gestures()
示例#8
0
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()
示例#9
0
from Reader import READER

newReader = READER()

newReader.Draw_Gestures()
示例#10
0
"""

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')
示例#11
0
import numpy
import pickle
from Reader import READER
reader_instance = READER()
reader_instance.Draw_Gestures()
示例#12
0
from Reader import READER

Reader = READER()
Reader.Record_Files()
Reader.Draw_Gestures()