kinect workshop part 1/2
Post on 17-May-2015
2.287 Views
Preview:
DESCRIPTION
TRANSCRIPT
2012/02/07
KINECT WORKSHOP
•What is Kinect
• How to Kinect Hacking
• Setup!
AGENDA
WHAT IS KINECT
•Motion sensing input device
•Designed for Microsoft Xbox 360
• Components
• 3D depth sensor
• RGB Camera
•Microphones / Motorized tilt
USAGE
KINECT HACKING BRINGS...
•Demo
• http://vimeo.com/17836665
• http://www.youtube.com/watch?v=lajP7HO7ZyE
• http://mrdoob.com/lab/javascript/webgl/kinect/
• http://vimeo.com/24546394
RECIPE
•Mac and OS X 10.6 or later
• Kinect
•Driver for Mac
• Xcode
• openFrameworks
DRIVER FOR PC
• libfreenect
• First Kinect driver for PCs
• Simple and Fast.
•OpenNI
• PrimeSense officially released.
• Can detect bones
XCODE
• For compiling openFrameworks projects.
• Bundles many useful development tools.
• Compilers (gcc)
•Mac OS X Software development kit.
HOMEBREW
• Homebrew (a.k.a. brew) is Package manager for OS X
• Easiest way to install missing Unix tools.
• $ brew install opencv
• Require compiler. (provided by Xcode)
OPENFRAMEWORKS
•Written by C++
• Insanely fast!
• Flexible API. Processing like. (setup, update, draw)
•Many addons (OpenCV, OSC etc...)
• Exists library for Kinect.
• ofxKinect, ofxOpenNI
INSTALLATION
•Download Xcode installer from Mac App Store
INSTALLATION
• Install Homebrew
• Google: homebrew install
INSTALLATION
• Install libfreenect, libusb-freenect by Homebrew
• cd `brew --prefix`/Library/Formula
• $ curl --insecure -O "https://raw.github.com/OpenKinect/libfreenect/master/platform/osx/homebrew/libfreenect.rb"
• $ curl --insecure -O "https://raw.github.com/OpenKinect/libfreenect/master/platform/osx/homebrew/libusb-freenect.rb"
• $ brew install libfreenect
INSTALLATION
•Download openFrameworks v007
• http://openframeworks.cc
•
INSTALLATION
• Put openFrameworks to your home directory
• /Users/anyone/of_preRelease_v007_osx
INSTALLATION
•Download ofxOpenNI (includes OpenNI Libraries)
• Google: ofxopenni
• https://github.com/gameoverhack/ofxOpenNI
INSTALLATION
• Rename gameoverhack-ofxOpenNI-xxxx to ofxOpenNI
• Put ofxOpenNI to openFrameworks addons directory
INSTALLATION
•Make application directory
• of_preRelease_v007_osx/apps/myapps
•Move example project to application directory
• of_preRelease_v007_osx/addons/ofxOpenNI/example/openNI-demoAllFeatures
• of_preRelease_v007_osx/apps/myapps/openNI-demoAllFeatures
INSTALLATION
• Copy libraries to project folder
• src: of_preRelease_v007_osx/addons/ofxOpenNI/mac/copy_to_data_openni_path/lib
• dest: of_preRelease_v007_osx/apps/myapps/openNI-demoAllFeatures/bin/data/openni
OPEN PROJECT
•Open Xcode Projet file
• of_preRelease_v007_osx/apps/myapps/openNI-demoAllFeatures/openNiSample007.xcodeproj
DON’T FORGET!!
• Switch compiler Apple LLVM compiler to LLVM GCC
• Apple LLVM compiler cannot build openFrameworks project
• Set deployment target to Mac OS X 10.6
• 10.7 cannot build for Mac OS X SDK reason
RUN AND ENJOY!
CALIBRATING
TO BE CONTINUED...
top related