Kinect support for Raspberry Pi using libfreenect
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
The kinect plug looks close to USB but it's not quite the same. How do I get this to plug into my rpi? Do I need to cut the plug type and attach a regular usb plug instead? I've looked for a walkthrough regarding this but I haven't been about to find one that covers the physical connection. Please let me know if you know of a good walk through. In addition to the link listed in the comments above, which will help you convert the plug to a proper USB plug, you'll also need drivers for the Kinect sensor.
Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. How can I connect a kinect to my raspberry pi Ask Question. Asked 5 years, 2 months ago. Active 2 years, 2 months ago. Viewed 27k times. Jacksonkr Jacksonkr 1 1 gold badge 3 3 silver badges 12 12 bronze badges. Kinect V1 or V2? Aphire The one for the xboxI assume that's v1. Active Oldest Votes. Chris G.
Top 20 Raspberry Pi 4 Projects That You Must Try Now
Williams Chris G. Williams 2 2 silver badges 11 11 bronze badges. After looking at some of these links I found a connector adapter at amazon. The Overflow Blog. The Overflow How many jobs can be done at home? Featured on Meta. Community and Moderator guidelines for escalating issues via new response…. Feedback on Q2 Community Roadmap. Related Hot Network Questions. Question feed.Logout Register.
Getting Kinect V2 to work with Pi. I've got a client right now who sent me a Kinect V2 the one for the Xbox One, not the and wants me to write some code in the Processing language to run on the Pi for it. I've been struggling to get this thing working though. There seems to be a lot of confusing and contradictory information out there and a lot of it seems to be from the time window and contains lots of dead links and obsolete information. Can someone give me a basic idea of what to do just to get the thing talking to the Pi?
Right now it would be a victory to just be able to run some of the sample code and see that it's working. I'm aware that there are two incompatible projects for it, freenect and a combination of OpenNI and SensorKinect. Also freenect seems to come in two versions with freenect2 being for the V2 Kinect and freenect for the V1. My progress so far is basically that the Kinect shows up in the output of 'lsusb -v' so the kernel seems to see it on the USB bus when I plug it in.
Running freenect-glview a test program from the freenect package in Raspian yields only Code: Select all freenect-glview Kinect camera test Number of devices found: 0. Last edited by gpropf on Tue Aug 09, am, edited 1 time in total. Are you talking Kinect or Kinect One? Don't think anyone has reverse engineered the Kinect One yet? MS made it harder to use just to pi. Ok did a google, maybe. Not much info out there. Run it on a Pi Zero 1. Anyone know where to get a structured IR blaster lens?
Maybe a IR Led and negative of a dot plot? I'm dancing on Rainbows. Raspberries are not Apples or Oranges. Which is why I was looking, can get them second hand sometimes. Someone in the FPC forums is probably going to get the V2 to work? USB3 only? The USB3 requirement might just make it a no go for the Pi.
Plug it in and do lsusb? Looking at the chips on that PCB probably going to need 1amp plus the rest. Apple acquired Primesense then things went quiet New image sensors for cameras are getting 3D tech like this.Before we go to the Top 20 Raspberry Pi 4 Projects, we have good news for you makers!
Right now, Seeed is having a sale on Raspberry Pi 4 accessories! With this sale, you can now make Raspberry Pi 4 projects at an even lower cost! What are you waiting for!
They are:. The RPi 4 is the all new product in the Raspberry Pi series. You may use older versions of the Raspberry Pi for the projects below, but they definitely would not be as fast and reliable as the RPi 4. This computer can power two 4K screens at the same time, allow video and photo editing while having processing power to perform machine-learning.
In addition, it has 2 USB3. Have you ever wanted to direct your very own stop motion video like Wallace and Gromit? Stop motion videos have endless possibilities which allows users to be able to showcase their creativity which never fails to amaze. So how is stop motion made? You can now use your Raspberry Pi to set up a web server! For example, as it can be used to host any website, you can host your own blog!
Purchasing security system plans have always been expensive. For example a Smart security system can cost up to USD just for installation and on top of that, you still have to pay monthly fees! Home automation systems too expensive or too troublesome?
Want to control lights in your house automatically? Well with this system you can control almost anything you want in your house. With the Raspberry Pi 4 fast processing speed and performance power, your home automation system will be much more amazing. Remember this? This is a retro Jukebox which is an automated music-playing device, usually a coin-operated machine, that will play a user selection from self-contained media. You can find the full tutorial here at Raspberrypi.
Bots may be annoying sometimes on social media and most of the social media bots are just spam. However, there are useful things you can do with a social media bot as well!
For example, you can create a twitter bot to tweet about current news. Do you want to know what is causing your slow wifi or who is on your network? With the Raspberry Pi 4, you can now monitor and visualize the devices on your network and many more.I need to use a depthcamera kinect v1 or v2 doesnt matter. I just need a lowresolution image with a depth value so I can remove background within a certain threshold. I want to run this at at least 30 fps.
Not sure if I can install processing on a raspberry pi and run a kinect? Anyone with experience in this? Using Kinect with Raspberry Pi is definitely possible. It might be not supported out of the box in OpenKinect-for-Processing.
Also if you want to remove depth values of certain threshold, be aware that Processing can only store textures with 8bit resolution, which means that from initial v1 or v2 depth levels you will go down towhich might be a bit frustrating. I shared my experience here:. Yes i have been doing the background subtraction before using kinect in processing.
It worked fine then. Nowadays I mostly works in other frameworks though. I might try to use a stereo camera as well for getting the depth image. Will investigate this further. Thanks, you are very welcome to get back if you successfully installed and runned the kinect v1 or v2 on the Raspberry Pi and how you did it.GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account. I have installed libfreenect2 without errors and when I try to run Protonect I get this error message:.
It says that there is a problem with getting BOS descriptor. How to fix this problem? Linux raspberrypi 4. No, there are only usb 2. I have assumed that they have upgraded it since last version, but they didn't. Thank you. Skip to content. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up. New issue.
Jump to bottom. Copy link Quote reply. I have installed libfreenect2 without errors and when I try to run Protonect I get this error message: [Info] [Freenect2Impl] enumerating devices This is what dmesg reutrns after reconnecting device and running Protonect: [ Version, Platform, and Hardware: Linux raspberrypi 4.
Otherwise, let me know if you have a working alternative. If you want to use just video color, not depth there is already a driver in the kernel! You can load it like this:. If you need depth which is why you want a kinectbut have a kernel older than 3. If you have 3. If you can manage to plug your kinect camera to the raspberry Pi, install guvcview first to see if it does works. Then, type guvcview in the terminal and it should open an option panel and the camera control view. If all of that does works and that you want to get the RAW data to do some image treatments, you will need to compile OpenCV it takes 4 hour of compiling and after that, you just will need to program whatever you want.
To compile it, just search on Google, there are lots of tutorial. Well, as far as I know there are no successful stories about getting images from Kinect on RaspberryPi. On github there is an issue in libfreenect repository about such problem. In this comment user zarvox say that RPi haven't enough power to handle data from Kinect. And that was not a clever decision because it's impossible to work with Microsoft Kinect on Linux using OpenNI2 due to licensing restrictions Well, actually it is not so impossible.
And how to connect Kinect to more powerfull arm-based CubieBoard2: three. A second possiblity is to use the OpenNI library which provides a SDK to develop midleware libraries to interface to your application there is even an OpenNi lib for processing here. I have done this work with the openkinect library.
How are we doing? Please help us improve Stack Overflow. Take our short survey. Learn more. Raspberry Pi with Kinect Ask Question. Asked 6 years, 8 months ago. Active 8 months ago.
Viewed 63k times. Could anyone get the camera data from the Kinect using a Raspberry Pi? Cyril Cyril 1 1 gold badge 3 3 silver badges 8 8 bronze badges. Here's a great tutorial blog. Was that the Kinect V1? Active Oldest Votes.
To answer your question, yes it is possible to get Image and depth on the raspberry pi! Here is how to. LukeShu 75 1 1 silver badge 6 6 bronze badges. Just to make it clear, this is a the only current solution to use the kinect on slow embedded devices. I've done an edit to note this, but it's waiting peer review.Developing apps for the Raspberry Pi that utilize the Xbox Kinect is best accomplished with libfreenect.
Libfreenect is an open-source library that provides access to the sensors and motors on the Kinect. Libfreenect v0.
Raspberry Pi 4
Note, do not install libusb from the apt repository, we will need to build the latest version in the next step. Next we will build libusb, which is required by libfreenect.
You may want to change the download URL to the latest version. As of this post, v1. You can find the libusb releases here. I suggest checking for the latest version. Below I have steps for v0. It may be helpful to add that, when trying to run the sample apps but run into error while loading shared libraries Other than that, thanks a lot for the instructions!
The web is full of outdated stuff. This is the most applicable to the current state of affairs. Thank you very much. Thanks for that. Hi, have you tried running the kinect on the Raspberry Pi 3? I got a R Pi 3 a few weeks back and wanted to see what frame rate it could I could get with Kinect. Hi, firstly thanks for the great info you provide here. So I can confirm if my hardware is faulty or not.
I actually just picked up a Pi 3 myself the other day. Hi, thanks so much for the response. So I decided to try loading the USB bus a bit by adding a 2nd wifi dongle.Raspberry Pi Projects 2020
This fixed the problem for me, the test program starts every time and no more connection errors. I guess then it has to be a timing bug. I followed your instruction here to install Libfreenect on my Pi2 running Jessie, apparently successfully. On ccpview, a runtime error. Error message: Number of devices found: 1 Could not open device: -3 […] something with subsystem. The 99 can be replaced with any two digit number. Hi thanks for your sitei have a problem with use freenect-glview command.
We have followed all the steps you have mention above and we have reached the stage where we can see all the sample app as show in the last step above. We need the assistance on how to run the sample app. Hi, thanks for the tutorial! Skip to content Developing apps for the Raspberry Pi that utilize the Xbox Kinect is best accomplished with libfreenect.
Step 1: Update Sources To get started, open a shell in Raspian and update your sources and installed apps:. Like this: Like Loading Thanks for any help here. Thanks again for any help. Hi, this is a great and simple tutorial.