Skip to content

Instantly share code, notes, and snippets.

@gabriel
Created January 12, 2011 04:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gabriel/775710 to your computer and use it in GitHub Desktop.
Save gabriel/775710 to your computer and use it in GitHub Desktop.
# Install ZeroMQ
sudo brew install zmq
easy_install pyzmq
[0] http://www.zeromq.org/bindings:python
# Install OpenCV
sudo brew install opencv
# Install libusb
sudo brew install libusb
# Install libfreenect
cd /usr/local/Library/Formula
sudo curl --insecure -O "https://github.com/OpenKinect/libfreenect/raw/master/platform/osx/homebrew/libfreenect.rb"
sudo curl --insecure -O "https://github.com/OpenKinect/libfreenect/raw/master/platform/osx/homebrew/libusb-freenect.rb"
sudo brew install libfreenect
[0] http://openkinect.org/wiki/Getting_Started#Get_the_formulas
# Fix libJPEG:
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Expected in: /usr/local/lib/libJPEG.dylib
in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Trace/BPT trap
sudo cp /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Resources/libJPEG.dylib /usr/local/lib/libJPEG.dylib
# Fix libTIFF
dyld: Symbol not found: __cg_TIFFClientOpen
Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in: /usr/local/lib/libTIFF.dylib
in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
Trace/BPT trap
sudo cp /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Resources/libTIFF.dylib /usr/local/lib/
# Build ocv_freenect
cd depthjs/cv
make
# Install DepthJS chrome extension
Type chrome://extensions, expand Developer mode click “Load unpacked extension” and select the "depthjs/chrome-extension" folder.
# Start the backend
Tornado/ZMQ backend:
python depthjs/backend/backend.py
OpenCV/Freenect:
./depthjs/cv/ocv_freenect
# Load the extension
In chrome://extensions/, select the background.html link in the DepthJS section. Select the Javascript console, you should see events streaming in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment