This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script is meant to be run several times, from IPython. | |
Modify whatever you like in it, but sure to think of your globals() as | |
being preserved in between | |
""" | |
from blockplayer.visuals.pointwindow import PointWindow | |
from OpenGL.GL import * | |
if not 'window' in globals(): | |
win |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@window.eventx | |
def EVT_CHAR(event): | |
print chr(event.GetKeyCode()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
amiller@amiller-asus:~/Desktop/kinectstuff/kontort/decision_tree$ python training_server.py | |
/usr/local/lib/python2.6/dist-packages/classipy/__init__.py:8: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility | |
from _classipy_rand_forest import RandomForestClassifier, FastClassifier | |
/usr/local/lib/python2.6/dist-packages/classipy/__init__.py:8: RuntimeWarning: numpy.flatiter size changed, may indicate binary incompatibility | |
from _classipy_rand_forest import RandomForestClassifier, FastClassifier | |
Traceback (most recent call last): | |
File "training_server.py", line 195, in <module> | |
main(*parse_args()) | |
File "training_server.py", line 185, in main | |
socket_rep = setup_rep_socket(address, reqrepport) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
amiller@amiller-asus:~/Desktop/kinectstuff/kontort/decision_tree$ python annotation_client.py --address 127.0.0.1 | |
from _kontort_depth_predict import DepthPredict, DepthFeature, FeatureGenerator2Vec5DoF, FeatureGenerator2Vec3DoF, feature_to_str | |
Reqrep [127.0.0.1:10123] | |
Traceback (most recent call last): | |
File "annotation_client.py", line 103, in <module> | |
main(*parse_args()) | |
File "annotation_client.py", line 92, in main | |
socket_req, pubsubport = setup_req_socket(address, reqrepport) | |
File "annotation_client.py", line 72, in setup_req_socket | |
newest_model = load_new_model(data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
amiller@amiller-asus:~/kinect/OpenNI/Platform/Linux-x86/Build$ make | |
make -C OpenNI CFG=Release | |
make -C Samples/NiAudioSample CFG=Release | |
make -C Samples/NiUserTracker CFG=Release | |
make[1]: Entering directory `/home/amiller/kinect/OpenNI/Platform/Linux-x86/Build/Samples/NiAudioSample' | |
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. | |
make[1]: Entering directory `/home/amiller/kinect/OpenNI/Platform/Linux-x86/Build/Samples/NiUserTracker' | |
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. | |
make[1]: Nothing to be done for `all'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
amiller@amiller-asus:~/kinect/Sensor/Platform/Linux-x86/Build$ make | |
make -C XnCore CFG=Release | |
make -C XnDeviceSensorV2 CFG=Release | |
make[1]: Entering directory `/home/amiller/kinect/Sensor/Platform/Linux-x86/Build/XnCore' | |
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. | |
mkdir -p Release | |
g++ -MD -MP -MT "./Release/XnBuffer.d Release/XnBuffer.o" -c -malign-double -fPIC -fvisibility=hidden -O2 -DNDEBUG -msse3 -I/usr/include/ni -I../../../../Include -I../../../../Source -I../../../../Source/XnCommon -DXN_CORE_EXPORTS -o Release/XnBuffer.o ../../../../Source/XnCore/XnBuffer.cpp | |
make[1]: Entering directory `/home/amiller/kinect/Sensor/Platform/Linux-x86/Build/XnDeviceSensorV2' | |
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. | |
mkdir -p Release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
amiller@amiller-asus:~/kinect/OpenNI/Platform/Linux-x86/Build$ make | |
make -C OpenNI | |
make -C Samples/NiAudioSample | |
make -C Samples/NiUserTracker | |
make[1]: Entering directory `/home/amiller/kinect/OpenNI/Platform/Linux-x86/Build/Samples/NiAudioSample' | |
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. | |
make[1]: Entering directory `/home/amiller/kinect/OpenNI/Platform/Linux-x86/Build/Samples/NiUserTracker' | |
make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. | |
make[1]: Nothing to be done for `all'. | |
make[1]: Leaving directory `/home/amiller/kinect/OpenNI/Platform/Linux-x86/Build/Samples/NiAudioSample' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
amiller@amiller-asus:~/kinect/OpenNI/Platform/Linux-x86/Build$ sudo make install | |
make -C OpenNI | |
make[1]: Entering directory `/home/amiller/kinect/OpenNI/Platform/Linux-x86/Build/OpenNI' | |
make[1]: Nothing to be done for `all'. | |
make[1]: Leaving directory `/home/amiller/kinect/OpenNI/Platform/Linux-x86/Build/OpenNI' | |
make -C Modules/nimCodecs | |
make[1]: Entering directory `/home/amiller/kinect/OpenNI/Platform/Linux-x86/Build/Modules/nimCodecs' | |
make[1]: Nothing to be done for `all'. | |
make[1]: Leaving directory `/home/amiller/kinect/OpenNI/Platform/Linux-x86/Build/Modules/nimCodecs' | |
make -C Modules/nimMockNodes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pylab | |
img = np.empty((480,640,3),'u1') | |
# Draw horizontal stripes yellow | |
img[(120,240,360),:,:] = (255,255,0) | |
# Draw vertical stripes purple | |
img[:,(160,320,480),:] = (255,0,255) | |
pylab.imshow(img) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kontort import DepthPredict | |
import cPickle as pickle | |
import numpy as np | |
def main(): | |
with open('data/rfc_model.pkl') as f: | |
model_ser = pickle.load(f) | |
classifier = DepthPredict(model_ser) |