Kinect xbox 360 - c++

I am new on using a Kinect sensor, I have Kinect XBOX 360 and I need to use it to get a real moving body 3D positions. I need to use it with c++ and openCV. I could not find anything helpful on the web. So, please if anyone can give me some advice or if there any code for opening Kinect XBOX 360 with c++ to start with I will appreciate that.

Maybe try this library: https://github.com/OpenKinect/libfreenect . If you don't have to use C++ obviously the C# drivers for the xbox Kinect by Microsoft are quite useful.

You're going to want to use OpenNI (https://structure.io/openni) for this. It will make your life infinitely easier. I believe you can even compile OpenCV with OpenNI support out of the box.
You'll probably also want to download and compile PCL (http://pointclouds.org/), which will make managing and manipulating the 3D data a lot easier.
To build a cohesive 3D "world", you'll want to use a fusion library like KinectFusion, which is actually baked into PCL already (https://github.com/PointCloudLibrary/pcl/tree/master/gpu/kinfu).
For object recognition, you'll want to use a classifier, of which OpenCV and PCL have many.
There are a plethora of tutorials and examples using the Kinect as an RGBD source.

Related

Finger tracking using Kinect SDK in C++

I want to implement finger tracking using Kinect SDK in C++. I have worked on a lot of hand gestures but I'm stuck at finger tracking. Can you tell me some good libraries or open source projects to get a head start? I am working on Windows 7 64 bit system. Any help will be appreciated.
I don't know of any libraries in c++ that support it out of the box but if you are just looking for a head start or a starting point you might want to look at This or this. Its in c# but it should give you a good idea and it does involve finger detection including directional information.
You can use OpenCV along with your Kinect SDK for finger tracking. Here is an inspiring video:
http://www.youtube.com/watch?v=xML2S6bvMwI
You can also see this link:
Finger detection in human hand

How to start learning the basics to write program in C++ for XBOX 360 KINECT for developing windows application?

I have a basic knowledge of c++. And i want to learn how to write program for Kinect Sensor.
I have seen many websites with examples of programs for Kinect Sensor in c++, but none of them have explained it well enough to understand whats happening in the code they have written.
so tell me how can start learning the basics to write programs for Kinect Sensor.
if there are any tutorials (preferably video tutorial), so tell me about them also.
Thank You In Advance.
Kinect C++ here : http://www.codeproject.com/Articles/394975/How-To-Use-Kinect-Face-Tracking-SDK
and here : http://nsmoly.wordpress.com/2012/05/21/face-tracking-sdk-in-kinect-for-windows-1-5/
There are videos and documentation at the Kinect Learn site. You should probably start from there.
A quick google brings up this page which is a C++ Kinect tutorial. It's in Russian, but Google Translate could help you with that: http://habrahabr.ru/post/123588/
Also this similar (but poor quality so now closed) question may be of use: Kinect with OpenGL

Microsoft Kinect - openNI Hand Generator issue

I am trying to use a kinect device in order to detect the palm within a kinect video(.oni video). I am using openNI libraries to develop this type of application.
They have published a manual of the basic features available within the openNI which can be seen here.
I have tried to implement the code which they displayed in the hand detection section, however, I don't have any results.
Do you happen to know where can I find a tutorial for a basic hand detection application for kinect through openNI library?
I started with OpenNI User Guide and it was very useful. There is a working example called "Working with Hand Point". If you want more powerful hand recognition you can try NITE. You can have working sample following this tutorial, it is for Linux, but most part of it will work even for Windows.
You can start with :
http://channel9.msdn.com/coding4fun/kinect/Simple-Hand-Tracking-with-MS-Kinect-SDK--WPF

interact with a pc camera using c++

i intend to interact with a pc camera using c plus plus. Are there any libraries you can recommend or ways to go about ? The idea is to take shots with a Samsung wireless cam then get the images transferred unto a pc with cam and on the pc show images as per the face detection using the cam . any ideas where to start ?
Well, there's a wide range of ways to do it. Professional cameras have accompanying SDKs. If you camera is supported by it (I believe most webcams are) you should try OpenCV for a start.
Googling for "opencv face recognition" will yield plenty of hits, so you have a lot of reference material.
Try this reference (Face and Eyes Detection Using OpenCV) for a start.
After you start your project, you can specific questions on StackOverflow or on the OpenCV Yahoo! group.
Other options are:
1) openFrameworks.
Quoting from their website:
Openframeworks is a c++ library designed to assist the creative process by providing a simple and intuitive framework for experimentation.
The library is designed to work as a general purpose glue, and wraps together several commonly used libraries under a tidy interface: openGL for graphics, rtAudio for audio input and output, freeType for fonts,freeImage for image input and output, quicktime for video playing and sequence grabbing.
2) Qt
If you decide Qt, see this related question: Displaying WebCam video with Qt

generating a 3d graphics c++

I have found an interesting application on the net and i am using it for my end year study project.
http://www.cl.cam.ac.uk/~sjeh3/wii/ the video in the link explains my goal.
But i am having issue using it. the example of rendering the trajectory on a 3d axis is using Corba (omniorb) and i believe open inventor. but there isn't any idl file. and i don't know if it's possible to use it.
My question is :
Is it possible to render a 3d real time graphics using a lib in c++ making it easy and fast to implement? i tried using matlab engine or matlab simulation with tcpip communication but i am having issues with these technics so i am searching for another way.
Does anybody have an idea ?
sincerely,
Hugo
Take a look at OpenGL.
You might also look at SDL (which uses OpenGL).
Edit (re: comments)
For the plotting aspect, you could look at VTK and/or MayaVI (which puts a Python scripting wrapper around VTK).