Lib4U

‎"Behind every stack of books there is a flood of knowledge."

Kinect use with Matlab

header_matlabkinect-620x250

 

I have recently purchased a Kinect camera (although I do not even own an X-Box). It’s main purpose is to get the multi-touch working on it. Well, multi-touch: multi-sky-touch that...

I have recently purchased a Kinect camera (although I do not even own an X-Box). It’s main purpose is to get the multi-touch working on it. Well, multi-touch: multi-sky-touch that is. For this i would be programming in C, but for now it is easier to develop in Matlab, so let’s focus on Matlab.

Kinect Hardware connections

The Kinect is provided with a normal USB connector and split to a normal power adapter. It gets quite hot after a while.

Kinect Drivers
There are three options to get the driver working on your Windows machine (and one for your OS X beast):

  • CLNUI untested
  • Open-Kinect
  • OpenNI/NITE

Open-Kinect

If we are going to use Open-Kinect with Matlab, we will be using an external DLL written for Matlab after the Kinect is working. For this we will use the Image Acquisition Toolbox (IMAQ). I had a lot of trouble with this. Though, this seemed like the good option since the Image Acquisition-toolbox is made especially for these kinds of streaming video data, for which you would otherwise need buggy loops. So after some problems with IMAQ i switched to the other driver. Also, you need Visual Studio for this approach.

 

Open-NI and NITE

This worked great for me, although this is not entirely open-source, but i was not going to touch the source-code much anyway. So, lets get this working: Do this:

  1. Download Kinect Drivers (LINK) and press the DOWNLOAD button. Search for the file dpinst-x86.exe and run it.
  2. Download the unstable binary which worked for me (LINK) otherwise try the unstable binary. Scroll down and press LATEST UNSTABLE and download.
  3. Download the unstable NITE binary (LINK), same fashion as (2), the install key is0KOIk2JeIBYClPWVnMoRKn5cdY4=
  4. Download the unstable binary from (LINK) and install.
  5. Plug in the Kinect. If you go to the device manager it should say Xbox NUI Audio unknown, this is obvious, and under PrimeSensor you’ve got your Cam and Motor
  6. For this step check http://www.studentguru.gr/blogs/vangos/archive/2011/01/20/how-to-successfully-install-kinect-windows-openni-nite.aspx
  7. Run a test to make sure it works from C:\Program Files\OpenNI\Samples\Bin\Release and C:\Program Files\Prime Sense\NITE\Samples\Bin\Release. If they do not work, do not proceed. Switch binaries; stable or unstable this time.
  8. Get http://sourceforge.net/projects/kinect-mex/ , press DOWNLOAD and unpack: then get to Matlab and run one of the test .m files. You can only execute the files that have _sample in them, the rest is compiled stuff you should not touch. Also, don’t touch the .XML files. Now, hacking begins!
  9. If you have any problems, drop a line in the comments.

Specifications

  • Streaming RGB ánd depth image: 20 FPS
  • Streaming depth image only: 30~35 FPS
  • Streaming without viewing: 35~50 FPS

Here a sample video in which i 3D reconstruct my desk-area.

 

Source:

http://www.timzaman.com/?p=504&lang=en

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Virtual Fashion Technology

Virtual Fashion Education

toitocuaanhem

"chúng tôi chỉ là tôi tớ của anh em, vì Đức Kitô" (2Cr 4,5b)

VentureBeat

News About Tech, Money and Innovation

digitalerr0r

Modern art using the GPU

Theme Showcase

Find the perfect theme for your blog.

lsuvietnam

Learn to Learn

Gocomay's Blog

Con tằm đến thác vẫn còn vương tơ

Toán cho Vật lý

Khoa Vật lý, Đại học Sư phạm Tp.HCM - ĐT :(08)-38352020 - 109

Maths 4 Physics & more...

Blog Toán Cao Cấp (M4Ps)

Bucket List Publications

Indulge- Travel, Adventure, & New Experiences

Lib4U

‎"Behind every stack of books there is a flood of knowledge."

The WordPress.com Blog

The latest news on WordPress.com and the WordPress community.

%d bloggers like this: