Why is "from pykinect2 import PyKinectV2 " not working?

217 Views Asked by At

I'm trying right now using PyCharm IDE to just turn on my camera Kinect v2 using PyKinect2, but I can't. If they are is any solution can you help me? This is the code:

import pygame
from pykinect2 import PyKinectV2
1

There are 1 best solutions below

0
On

This happens due to an error. When pykinectv2 is installed it using pip install PyKinectV2 command. To fix it please do the following.

Go to the pykinect2 installation in the site-packages folder (C:\Users\ME\PycharmProjects\kinect2\venv\lib\site-packages\pykinect2) and replace the files with .py extension files with the ones from the github repository. This should solve the problem. Link: https://github.com/Kinect/PyKinect2