Using pyfreenect2
- Python2 (python3 support : https://github.com/LovelyHorse/py3freenect2)
- Numpy
- Scipy (as appropriated by python version) :
- Python Imaging Library (used for scipy.misc.im* functions) : http://www.pythonware.com/products/pil/
- OpenCV
cd ~\path\to\pyfreenect2
You need libfreenect2 installed, and also download yolov3.weights and put it in the /examples
dir.
For libfreenect2
, go to the build
directory and run sudo cp ../platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/
Add export LD_LIBRARY_PATH=$HOME/freenect2/lib:$LD_LIBRARY_PATH
to your ~/.bashrc
file.
pip install scipy opencv-python
, use sudo
if necessary.
Try sudo ln -s $HOME/freenect2/lib/libfreenect2.so.0.2.0 /usr/lib/libfreenect2.so
or check out this issue
sudo python setup.py install
.
Every time the computer restarts, unplug and replug the kinect (Issue).
Navigate to the examples
directory, then python run.py