install and setup kinect xbox 360 1473 [ubuntu 16.04 64bit / debian 64bit /windows 7]

about 1473 (i found my model number at the bottom of the kinect):
upgrade to make Kinect-for-Xbox compatible with the then-new Kinect-for-Windows.

==============================================================
linux tutorial tested with ubuntu-64bit-16.04 and debian-64bit[testing]
==============================================================

based on:
http://forrestbao.blogspot.de/2014/02/openni2-nite2-freenect-ubuntu-1304.html
https://github.com/OpenKinect/libfreenect
http://mitchtech.net/ubuntu-kinect-openni-primesense/
http://www.instructables.com/id/Hooking-up-a-Kinect-to-your-Computer-Using-Ubuntu/step3/An-Intro-to-Terminal/
https://www.onli-blogging.de/1080/Kinect-unter-Linux.html
http://idav.ucdavis.edu/~okreylos/ResDev/Kinect/index.html
https://openkinect.org/wiki/Getting_Started
http://www.20papercups.net/programming/kinect-on-ubuntu-with-openni/

install dependencies:
sudo apt install zlib1g-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev
sudo apt install git-core cmake freeglut3-dev pkg-config build-essential libxmu-dev \
libxi-dev libusb-1.0-0-dev doxygen graphviz mono-complete

install freenect driver:
sudo apt install freenect python-freenect

test freenect:
freenect-glview #or freenect-cppview

install kinect-mouse:
cd
git clone https://github.com/Ooblik/Kinect-Mouse.git
cd Kinect-Mouse
cmake .
make

test it:
~/Kinect-Mouse/kmouse

test python-freenect library:
based on:
https://gist.github.com/anonymous/126c50cf9233ade3c79b35e4e22f7629
http://vaaiibhav.me/openkinect-python-and-opencv
sudo apt install python-opencv

wget https://gist.githubusercontent.com/anonymous/126c50cf9233ade3c79b35e4e22f7629/raw/62bea505b6d9d24079903bf210c873f7d84e4cd6/openkinect-python-and-opencv.py
chmod +x openkinect-python-and-opencv.py
python openkinect-python-and-opencv.py

wget https://gist.githubusercontent.com/bwhite/758134/raw/8214b5fbb96aaad9a1e7ec87e93823e5f259754a/demo_cv_sync.py
python demo_cv_sync.py

hand tracking:
based on:
http://code.activestate.com/recipes/578104-openkinect-mouse-control-using-python/
sudo apt install python-pygame
create the file from homepage with nano then run it
sudo python HandTracking.py

nice game with handtracking:
cd
git clone https://github.com/StLuke/VRPZ.git
cd ~/VRPZ/stuff && ./run.sh

install OpenNI and NiTE:
based on:
https://gist.github.com/Wessi/85afb5d78b53a38e304e
http://www.overconsulting.net/posts/installation-d-une-kinect-sous-ubuntu-13-10-openni2-freenect-nite2

install unpack first:
sudo apt install unp -y

cd ~
mkdir tmp && cd tmp
#wget http://openni.ru/wp-content/uploads/2013/01/OpenNI-Linux-x64-2.1.0.tar.zip
#wget http://ilab.usc.edu/packages/forall/ubuntu-13.10/NiTE-Linux-x64-2.2.tar.bz2

wget http://com.occipital.openni.s3.amazonaws.com/OpenNI-Linux-x64-2.2.0.33.tar.bz2
wget https://raw.githubusercontent.com/ipa320/thirdparty/master/NiTE-Linux-x64-2.2.tar.bz2
unp OpenNI-Linux-x64-2.2.0.33.tar.bz2
cd OpenNI-Linux-x64-2.2/ && sudo ./install.sh && cd ..
unp NiTE-Linux-x64-2.2.tar.bz2
cd ~/tmp/NiTE-Linux-x64-2.2 && sudo ./install.sh && cd ..
#nano /etc/udev/rules.d/557-primesense-usb.rules

copy over libFreenectDriver.so: This is very important for kinect 1473!!
cd
wget https://raw.githubusercontent.com/suiwenfeng/Ubuntu_x64_Openni2.2_NiTE2.2_FreenectDriver/master/OpenNI2/Drivers/libFreenectDriver.so
cp ~/libFreenectDriver.so ~/tmp/OpenNI-Linux-x64-2.2/Samples/Bin/OpenNI2/Drivers/
mv ~/libFreenectDriver.so ~/tmp/NiTE-Linux-x64-2.2/Samples/Bin/OpenNI2/Drivers/

test openni examples:
cd ~/tmp/OpenNI-Linux-x64-2.2/Samples/Bin/ && ./SimpleViewer
cd ~/tmp/OpenNI-Linux-x64-2.2/Samples/Bin/ && ./ClosestPointViewer
cd ~/tmp/OpenNI-Linux-x64-2.2/Samples/Bin/ && ./MultiDepthViewer
#device not found…

test nite examples:
cd ~/tmp/NiTE-Linux-x64-2.2/Samples/Bin/ && ./UserViewer
cd ~/tmp/NiTE-Linux-x64-2.2/Samples/Bin/ && ./HandViewer
cd ~/tmp/NiTE-Linux-x64-2.2/Samples/Bin/ && ./SimpleUserTracker

other related links to openni:
http://structure.io/openni
http://www.20papercups.net/programming/kinect-on-ubuntu-with-openni/
https://github.com/occipital/openni2
https://meengsite.wordpress.com/2016/06/25/installing-openni-in-ubuntu-14-04/
http://sparicc.blogspot.de/ #openni on odroid

links for ofxKinect:
https://vimeo.com/19331531 #mapping skeleton with ofxkinect
https://github.com/openframeworks/openFrameworks/tree/master/addons/ofxKinect #ofxkinect
https://github.com/ofTheo/ofxKinect #integrated in openframeworks
https://www.youtube.com/watch?v=Nqe9YFxloJk #rpi3 example
https://www.youtube.com/watch?v=XinEd7dwHJs #pointcloud
http://www.pointclouds.org/downloads/linux.html
https://github.com/johanGelinder/KinectTutorial #skeleton test based on openframework
https://www.youtube.com/watch?v=bA3JwQ2KV2M #ofxOpenNI Kinect camera, version 1414 running Xcode 6.4 and openFrameworks v0.8.4. skeleton
https://www.youtube.com/watch?v=xotPuYwk2to #ofxOpenNI

install openframeworks:
http://openframeworks.cc/setup/linux-install/
sudo apt install curl libpng12-dev libjpeg62-dev libtiff4-dev libasound2-dev libdc1394-22-dev
sudo ln -s /usr/include/rtaudio/RtAudio.h /usr/include/RtAudio.h #needed to compile it
wget http://openframeworks.cc/versions/v0.9.3/of_v0.9.3_linux64_release.tar.gz
unp of_v0.9.3_linux64_release.tar.gz
rm of_v*.tar.gz
cd ~/of_v0.9.3_linux64_release/scripts/linux/debian/
sudo ./install_dependencies.sh #recompile poco took ~5min
cd ~/of_v0.9.3_linux64_release/scripts/linux
./compileOF.sh -j3 #compiling took ~8min
cd ~/of_v0.9.3_linux64_release/examples/graphics/polygonExample && make
make RunRelease #or cd bin && ./polygonExample

kinect-openni-bvh-saver(not working for me in linux):
https://github.com/meshonline/kinect-openni-bvh-saver #for mac
sudo apt-get install libopencv-dev python-opencv

rgbdemo (not working) for 3d scan:
http://rgbdemo.org/index.php/Documentation/ObjectModelAcquisition
https://www.youtube.com/watch?v=08PUC9NAwLY
install dependencies:
sudo apt-get install libboost-all-dev libusb-1.0-0-dev libqt4-dev \
libgtk2.0-dev cmake libglew1.5-dev libgsl0-dev libxmu-dev #libglut3-dev
sudo apt-get install libeigen3-dev

get code and compile it:
cd
git clone https://github.com/rgbdemo/rgbdemo.git
cd rgbdemo
git clone https://github.com/rgbdemo/nestk.git
./linux_configure.sh #Could NOT find OpenNI (missing: OPENNI_LIBRARY OPENNI_INCLUDE_DIR)
./linux_build.sh

==============================================================
other related programs that do not need a kinect (linux):
==============================================================

mesh repairing software:
http://meshrepair.org/

meshfix:
https://sourceforge.net/projects/meshfix/ #fix broken meshes from scans

reworking animations:
http://www.ikinema.com/index.php?mod=products&show=3
https://www.youtube.com/watch?v=hpCJE44RNc8 ikinema webanimate
http://www.autodesk.com/products/motionbuilder/overview

bvhacker(best run it in virtualbox, problems with wine and compiling):
https://github.com/DaveDubUK/bvhacker
https://github.com/DaveDubUK/bvhacker

cd
mkdir bvhacker
cd bvhacker
wget http://www.bvhacker.com/downloads/latest/bvhacker_1.8.zip
unp bvhacker_1.8.zip

smartbody:
https://sourceforge.net/projects/smartbody/files/latest/download
wget http://netcologne.dl.sourceforge.net/project/smartbody/SmartBodySDK-r6140-windows.exe
wine SmartBodySDK-r6140-windows.exe

mocap player:
http://mocap.cs.cmu.edu/tools.php
mkdir mocaplayer
cd mocaplayer
wget http://graphics.cs.cmu.edu/software/mocapPlayer.zip
unzip mocapPlayer.zip
wine mocapPlayer.exe

OpenFlipper-Free for retopology(win, mac, linux):(not working)
https://www.graphics.rwth-aachen.de:9000/OpenFlipper-Free/OpenFlipper-Free/builds/529
install dependencies:
sudo apt install qt5-default
sudo apt install glew-utils
sudo apt install libglew-dev libglewmx-dev
sudo apt-get install freeglut3 freeglut3-dev #libglut3-dev
sudo apt-get install doxygen
sudo apt-get install libeigen3-dev
sudo apt-get install doxygen-latex
sudo apt-get install libxmu-dev libxi-dev
sudo apt-get install libboost-all-dev

get the code and compile it:
wget http://www.openflipper.org/media/Releases/3.0/OpenFlipper-3.0.zip
unzip OpenFlipper-3.0.zip
mkdir build-ofl && cd build-ofl
cmake /home/xxfreddyxx/OpenFlipper-3.0 #you have to replace xxfreddyxx with your name
make
sudo make install

==============================================================
for windows 7:
==============================================================

setup brekel kinect pro body:
http://brekel.com/brekel-kinect-pro-body-retail-installer-download/
install net framework 4-6-2
install your nvidia drivers 334.89
install hd graphics driver
install kinect for win sdk /runtime/driver 1.8
install brekel,...

usage pro body:
middle top field:
in live deactivate pointcloud and floor
(only activate skeleton)

on top right (record):
go to 3d and activate only BVH
choose secondlife
do NOT activate write positions

seconds for delay 10

to edit the bvh files:
install bvhacker http://bvhacker.com/
all with activated hip (click it on top left "hip" to make it yellow):
rightclick left hand > remove descendants
rightclick right hand > remove descendants
rightclick on right foot > clear rotation
rightclick on left foot > clear rotation
Hack > Attempt Sl joint naming
Hack > Attempt retarget to Sl

krop
knit
center
half samples
less fps
for upload: priority 4 and loop

middle box View > Front (F)
move x slider so the character is above ground
Shortcuts > Center (C)
Loop > Knit (ends) (only usefull for lopped animations)
maybe clap channel (set to zero) > xyz (after retarget, Sl joint naming)
then save

to run and compile other projects from github:
install SetupVirtualCloneDrive5500 (virtualclone drive) http://download.cnet.com/Virtual-CloneDrive/3000-20432_4-173879.html
install vs2015.3.com_enu.iso (ms vc c++ 2015 14.0.23506) #you can insert the downloaded image into virtual-clonedrive kb2882822 has problems when av is used (turn off public and private firewall) only activate c++ things nothing else
install microsoft visual c++ 2010 10.0.40219
install openni 2.2 u 1.5.4.0
install nite 2.2.0.11
install primsensor 5.1.2.1
install primsense 3.1.3.1

https://github.com/meshonline/kinect-sdk-bvh-saver
download the repo as zip file and unzip it.
start visual studio 2015 (community edidion):
changed it on the top middle to "Release", "Win32"
File > Open > Project/Solution
choose the .sln-file (solution) in:
\kinect-sdk-bvh-saver-master\SkeletonBasics-D2D
Build > Clean solution
Build > Build solution
then it is in Debug folder:
\kinect-sdk-bvh-saver-master\SkeletonBasics-D2D\Release\SkeletonBasics-D2D.exe

https://github.com/isunchy/Kinect_to_BVH/tree/master/Kinect_to_BVH
download the repo as zip file and unzip it.
start visual studio 2015 (community edidion):
File > Open > Project/Solution
choose the sln file in:
\Kinect_to_BVH-master\Kinect_to_BVH
Build > Clean solution
Build > Build solution
then it is in Debug folder:
\Kinect_to_BVH-master\Release\Kinect_to_BVH.exe

https://github.com/MonsterEL/KinectToBVH
download the repo as zip file and unzip it.
start visual studio 2015 (community edidion):
File > Open > Project/Solution
choose the sln file in:
Build > Clean solution
Build > Build solution
\KinectToBVH-master\KinectToBVH\KinectToBVH\bin\Release\KinectToBVH.exe
\KinectToBVH-master\WPF3DTest\WPF3DTest\bin\Release\WPF3DTest.exe
error : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\
Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets

https://github.com/vlusslus/BVHC
download the repo as zip file and unzip it.
start visual studio 2015 (community edidion):
File > Open > Project/Solution
choose the .csproj file
Build > Clean solution
Build > Build solution
\BVHC-master\BVHC-master\bin\Release\Kinect2BVH.exe

https://forum.ni-mate.com/t/why-doesnt-my-kinect-for-xbox-360-work/29/3
http://download.dahoo.fr/Ressources/openNi/NiTE%20v2.0/ #nite2.0.0 downloads all platforms
https://www.youtube.com/watch?v=m5uTH3S9P9g #openni nite kinect sdk in description
https://www.microsoft.com/en-us/download/details.aspx?id=40278 #Kinect for Windows SDK v1.8
https://www.microsoft.com/en-us/download/details.aspx?id=44561 #Kinect for Windows SDK 2.0
http://fivedots.coe.psu.ac.th/~ad/kinect/installation.html #openni and more
https://www.microsoft.com/de-de/store/p/3d-scan/9nblggh68pmc #win8.1 or 10
https://www.microsoft.com/en-us/store/p/3d-builder/9wzdncrfj3t6 #3d builder for kinect
https://developer.microsoft.com/en-us/windows/hardware/3d-scanning-with-kinect
https://www.microsoft.com/en-us/search/result.aspx?q=kinect&form=apps #all apps for kinect

Skanect:
http://skanect.occipital.com/download/ #mac, win ,freeversion Limited to 5000 polygons for export

reconstruct me:
http://reconstructme.net/
http://reconstructme.net/2012/10/10/reconstructmeqt-1-0-29-released/
https://www.youtube.com/watch?v=5Mm8dFwgbQA
#dropbox download in descrition for kinectsdk, nite and openni

commerical 3d scanner:
https://www.artec3d.com/artec-eva #13.700 €

windows free mocap:
http://tech.integrate.biz/kinect_mocap.htm
http://tech.integrate.biz/openni.htm

windows comercial mocap(also xp):
http://www.fastmocap.com/

windows comercial mocap(free trial):
based on: https://www.onysus.com/motion-capture/
https://ni-mate.com/download/ #also for kinect 1414 (maybe also mine?) https://vimeo.com/167107322
https://www.youtube.com/watch?v=qC-fdgPJhQ8 #with nimate
https://tentacles.org.uk/motion-capture #ni-mate tutorial
http://ipisoft.com/download/ #mocap and videorecords #only needs Microsoft .NET Framework 4.5.1 works with win7-10
bvh capture brekel:
https://atomicprime.wordpress.com/2016/09/01/motion-capture-with-kinect/

http://brekel.com/kinect-3d-scanner/download/
http://brekel.com/kinect-3d-scanner/installation-instructions/
http://developkinect.com/resource/application/brekel-kinect
https://vimeo.com/182218032 #kinect 2 brekel pro body

http://brekel.com/brekel-kinect-pro-body/download-trial-buy/

windows mocap face(free trial linx and windows): #seams to be broken for linux
http://faceshift.com/studio/2015.2/introduction.html#installation

==============================================================
other kinect links:
==============================================================

http://golancourses.net/2011spring/projects/project-3-interaction/
http://askubuntu.com/questions/tagged/kinect
https://github.com/joaquimrocha/Skeltrack #c
https://github.com/Chaos84/skeleton_tracker #cpp
http://www.joaquimrocha.com/2012/04/03/controlling-gnome-3-with-your-hands/

https://learn.adafruit.com/hacking-the-kinect

https://github.com/ipa320/ #fraunhofer ipa

http://www.sluniverse.com/php/vb/content-creation/55794-using-kinect-generate-sl-animation.html#post1161309 #kinect to bvh with ipisoft
http://www.sluniverse.com/php/vb/content-creation/84201-avastar-animations.html #kinect to bvh with brekel

Stanford motion tracker(markerless/maybe the source the kinect is build from):
https://ccrma.stanford.edu/~stefanoc/Markerless/Markerless.html
#https://simtk.org/frs/?group_id=91
#https://github.com/opensim-org/opensim-core/
#http://simtk-confluence.stanford.edu:8080/display/OpenSim/Building+OpenSim+from+Source

kinect 3d video capture:
http://idav.ucdavis.edu/~okreylos/ResDev/Kinect/index.html #Requires Vrui-3.1-004

http://www.nsl.tuis.ac.jp/xoops/modules/xpwiki/?SLKinect #kinect to liveanimate in sl

https://www.youtube.com/watch?v=bVW9pEIv3is #scan body, rigg it and animate it

Advertisements

9 thoughts on “install and setup kinect xbox 360 1473 [ubuntu 16.04 64bit / debian 64bit /windows 7]

  1. Hi guy. I’m trying to install my kinect, but I’m stucked at the first point: installing dependencies. All time retrieving the follow:

    Los siguientes paquetes tienen dependencias incumplidas:
    freeglut3-dev : Depende: libgl1-mesa-dev o
    libgl-dev
    Depende: libglu1-mesa-dev pero no va a instalarse o
    libglu-dev

    I’m not able to install freeglut3-dev because of dependencies. I’ve tried googling but a success installation not founded.

    Any idea? Thank you.

    • maybe try it without freeglut3-dev:
      sudo apt install git-core cmake pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev doxygen graphviz mono-complete

      what system do you use?
      you can find information about your system with:
      more /etc/issue

  2. Hello,

    I’m trying to run the nite examples on a linux machine.

    While HandViewer works fine, for SimpleUserTracker and UserViewer I’m getting the following error.

    “Error opening database/parameters file.”

    Do you might have any clue why this is happening ?

    Thanks a lot, in advance!!!

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