kinect1 (py_kinect) on linux ubuntu14.04 x64

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 libfreenectmkdir buildcd buildsudo cmake ..sudo make -j4sudo 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 <[email protected]>
Original-Maintainer: Aurelien Jarno <[email protected]>
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!

时间: 2024-08-30 17:02:10

kinect1 (py_kinect) on linux ubuntu14.04 x64的相关文章

Ubuntu14.04 x64 zabbix 3.0 安装

Ubuntu14.04 x64  zabbix 3.0 安装 苦于网上的文档很多,但是对初学者来说,很多都搭建不成功,我重新安装一下.记录一下. 下载deb wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb dpkg -i zabbix-release_3.0-1+trusty_all.deb apt-get update 1.安

【转】Linux(ubuntu14.04)上编译Android4.4源码的环境搭建及编译全过程

原文网址:http://jileniao.net/linux-android-building.html sublime text让我伤心.本来很信任sublime text的自动保存功能,之前使用一直很给力的,但这次让我伤心欲绝啊. 关于Linux(ubuntu14.04)上编译Android源码的环境搭建详细过程都是在sublime text中编辑好的,无奈,这次的数据丢失让我不得不重新来回想手打一次了.可能很多细节问题,这次重新编辑文章时不会记得那么清晰了,还请有问题的朋友在下面留言给我就

linux Ubuntu14.04 make编译文件报错:No rule to make target `/usr/lib/libpython2.7.so&#39;, needed by `python/_pywraps2.so&#39;. Stop.

错误过程:当“make”编译文件时报错No rule to make target `/usr/lib/libpython2.7.so', needed by `python/_pywraps2.so'.  Stop. 解决过程: 1.首先输入命令以下代码获取其出错原因 make --debug 错误提示如下,很明显是项目工程找不到它,原因有两个,一是系统没有装libpython2.7.os:二是装了,路径错误,或者名字不对 File '/usr/lib/libpython2.7.so' doe

Your personal Mail Server iRedMail on ubuntu14.04 x64

what we have? iRedMail -> http://iredmail.com Get the script over there.          http://www.iredmail.com/download.html Here we use ubuntu14.04 as server. Just follow this tutorial: http://www.iredmail.com/docs/install.iredmail.on.debian.ubuntu.html

Linux:Ubuntu14.04离线安装scala(在线安装)

参考Scala安装:http://www.lupaworld.com/thread-970271-1-1.html 以下命令安装默认scala版本 sudo apt-get install scala 如果想安装特定版本,按照以下步骤: 1)下载scala压缩包 wget http://downloads.typesafe.com/scala/2.10.5/scala-2.10.5.tgz 2)解压 $ sudo mkdir /opt/scala $ sudo tar zxvf scala-2.

linux ubuntu14.04下安装jdk的过程

首先去oracle官网上下载jdk,我下载的是jdk-8u51-linux-x64.tar.gz这个版本,官网上还有一个rpm 的文件,这个是红帽公司的一个安装版本,开始我下载了这个版本,然后在ubuntu中也安装了rpm,但是最后在安装这个rpm的jdk时,遇到很多错误,显示一排错误.然后就在官网上果断地下载了tar..gz文件.安装成功了,安装过程如下 我们下载的jdk-8u51-linux-x64.tar.gz文件,默认是在/ home/ranruilong/下载    这个文件夹下,这儿

轻松学习之Linux教程一 ubuntu14.04+windows双系统安装

本系列文章由@超人爱因斯坦出品,转载请注明出处.          文章链接:http://hpw123.net/member/index.php?uid=hpw&action=viewarchives&aid=60          作者:超人爱因斯坦    个人网站:http://www.hpw123.net        邮箱: [email protected]        CSDN:http://blog.csdn.net/u010283694 授之以鱼,不如授之以渔.    

【Linux学习之旅】之Ubuntu14.04 Docky无法锁定Chrome解决之道

1) Install gconf-editor (sudo apt-get install gconf-editor). 2) Press ALT+F2 and type gconf-editor. 3) Navigate to /apps/docky-2 - note that Docky should not be running (or it may override your changes) and that any changes made require a restart of

【Linux学习之旅】之Ubuntu14.04虚拟机VirtualBox的上网和USB问题

无法上网问题: sudo subl /etc/network/interfaces 增加以下内容: # The primary network interface auto eth0 iface eth0 inet dhcp 无法使用USB问题: sudo /usr/sbin/usermod -G vboxusers -a username [Linux学习之旅]之Ubuntu14.04虚拟机VirtualBox的上网和USB问题,布布扣,bubuko.com