码迷,mamicode.com
首页 > 系统相关 > 详细

kinect1 (py_kinect) on linux ubuntu14.04 x64

时间:2015-04-24 12:23:15      阅读:458      评论:0      收藏:0      [点我收藏+]

标签:

freenect libs

 

Where is the resource?

Here :P : https://github.com/OpenKinect/libfreenect

To make sure you were not installing the old libfreenect stuff shipped with ubuntu.

Try to remove those old packages if you have already.

 


apt-get remove freenect python-freenect libfreenect-demos 

 

 

 

Before you are going to build the libfreenect, you will want this:

 sudo apt-get install cython python-dev python-numpy freeglut3-dev libusb-1.0-0-dev libxmu-dev libxi-dev -y

 

 

First you need to download the libfreenect source codes from here.

git clone https://github.com/OpenKinect/libfreenect
cd libfreenect
mkdir build
cd build
sudo cmake ..
sudo make -j4
sudo make install

sudo ldconfig

 

技术分享

 

 

And now you can try plug in the kinect.

you will see it is detected by the computer:

技术分享 

 

you will see many tools which are compiled at once here.

 

技术分享

 

 

 

 

And Try this, see the depth if it works!!!!

技术分享

It works!

-------------

 

Python scripts

Now you may want to have fun with those python scripts!

For those people who do not want to compile anything in their ubuntu 14.04 

apt-get install python-opencv python-pygame python-xlib

 

F.Y.I.  I have installed ‘opencv-2.4.11‘ already.

 

技术分享

Then, hook some cool stuff now.

** Do not forget to use 

sudo

before any command related to kinect. Application need resource.

技术分享

 

 

py_kinect makes you feel so easy to have fun with kinect.

 

the source link is 

https://github.com/OpenKinect/libfreenect/tree/master/wrappers/python/

 

I feel it‘s bit slow on ubuntu 14.04. I doute it has something to do with the ‘libusb‘. According to the docs here https://github.com/OpenKinect/libfreenect , we need the libusb >= 1.0.18 , but here I used libusb 1.0.0

And the package we see is:

$ apt-cache show libusb-1.0-0-dev 
Package: libusb-1.0-0-dev
Priority: optional
Section: libdevel
Installed-Size: 281
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Aurelien Jarno <aurel32@debian.org>
Architecture: amd64
Source: libusbx
Version: 2:1.0.17-1ubuntu2
Depends: libusb-1.0-0 (= 2:1.0.17-1ubuntu2)
Recommends: libusb-1.0-doc
Filename: pool/main/libu/libusbx/libusb-1.0-0-dev_1.0.17-1ubuntu2_amd64.deb
Size: 54682
MD5sum: 2151c234e5b53391caab9b07b4b07fb0
SHA1: 20bece6578d0453bf57dc2b8f61eb9aa058fe474
SHA256: 5ea52a92904bad5c19f671626d8d52ec6ea8c5eec4d6c6606facb32860db46b7
Description-en: userspace USB programming library development files
 Library for programming USB applications without the knowledge
 of Linux kernel internals.
 .
 This package contains what you need for compiling sources that
 use this library in your own code.
Description-md5: 07c28a16589d7bc7f4eda04968bb1f5a
Multi-Arch: same
Homepage: http://www.linux-usb.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 9m

The package is maintained by a guy. As we can see, 

libusb-1.0-0-dev_1.0.17

 But it still works. I have already packed a new deb for this situation.

Here the download link:

 

libusb-1.0.19: http://pan.baidu.com/s/1gdCMrXx

 

DON‘T FORGET TO REBUILD ‘libfreenect‘ IF YOU UPGRADE YOUR LIB ‘libusb‘.

 

Please feel free to leave your comments here. 

 

Happy hacking!

kinect1 (py_kinect) on linux ubuntu14.04 x64

标签:

原文地址:http://www.cnblogs.com/spaceship9/p/4452699.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!