Converting depth_image from Kinect to OpenCV classic format(IplImage) for displaying - opencv

I am working with OpenCV2.4.5 and OpenNI2.0 (with SDK Kinect 1.6) on visual studio 2012. I try to develop an application of gaze tracking, for that i use "Kinect sensor" to get image_data and i want to process this ilage on OpenCV (Features extraction and machine learning).
If any one has an example or or a good tuto, it will be very helpful for me.
Best regards.

why not start with an opencv sample here ?

Related

Kinect v2 with Openni 2 and show with OpenCV 3.1.0

I am a newbie in programming and very much in Computer Vision. I am assigned a project in university to detect objects using the Kinect2 sensor.
I am trying to open Kinect 2 sensor via opencv 3.1.0 with VideoCapture method. I am using device.open (CAP_OPENNI2) method to open the Kinect rgb stream and retrieve it into an OpenCV Mat.
Before this, I have built the OPenNI from the source available on the Occipital's GitHub repo: https://github.com/occipital/OpenNI2/tree/kinect2/Source/Drivers
It has a Kinect2 driver and I was successful in building the Kinect2.dll binaries.
I then built OpenCV 3.1.0 from source with the flag "WITH_OPENNI2" and linked the Includes and Lib path to the OpenNI 2.2.0.33 I built with Kinect2 driver.
Though the OpenCV build was successful and I had all the binaries, linked it to VS2013 and also the OpenNI binaries, I couldn't still open the Kinect 2 sensor.
Has anybody succeeded in doing so?
Kindly help.
Best Regards,
Gholam
||.
I got it working some time ago - but it was not reproducible.
Did you get any images using the example programs of the Kinect SDK and the OpenNI Viewer?
Take a look at http://answers.opencv.org/question/85646/openni-22-kinect-v2-driver/ please. They suggest to use the Microsoft Kinect SDK without OpenNI.

Using OpenCV in Android to find an image match

I am trying to build an Android application that compares a photo taken by the device camera to find a match in a set of images.
I have configured OpenCV on Android Studio, but that is quite it.
Could someone please help by linking to resources or suggesting tutorials?
The OpenCV documentation does not have anything on Android Studio and the sample codes seem to be in C++.
My idea is to do the same things... I've searched some samples on GitHub but I've not found almost anything useful... These are some links:
https://github.com/search?utf8=%E2%9C%93&q=sift+android&type=Repositories&ref=searchresults
https://github.com/search?utf8=%E2%9C%93&q=opencv+android&type=Repositories&ref=searchresults
we have almost the same project. this links might help
https://github.com/torcellite/imageComparator
https://medium.com/#akshikawijesundara/object-recognition-with-opencv-on-android-6435277ab285
in OpenCV there are plenty algorithm that we can use to find image match such as BRISK, ORB, FREAK, SIFT and SURF (SIFT and SURF available only in nonfree version since those algorithm patented).
I hope this will help

Run "introduction_to_svm.cpp" from OpenCV 2.4.11 but got wrong support vectors

I am new in using OpenCV, I run the "introduction_to_svm.cpp" sample code with Visual Studio 2010 on Windows 7(64bit) PC, but could not get the right support vectors in the result image, the returned support vector is point(0,0), which is not the right answer. Have anyone ever encountered similar problem ?
I have received response from opencv's "questions", see http://code.opencv.org/issues/2978, thanks anyway.

Distorted 3D reconstruction OPENCV + PCL (Martin Peris code)

I am using Martin Peris code for 3D reconstruction using OpenCV and PCL (link below):
http://blog.martinperis.com/2012/01/3d-reconstruction-with-opencv-and-point.html
Trouble point:
I am having trouble with the final step in viewing the 3D reconstruction in the "3D viewer" window. I am getting a perfect disparity image as shown in the blog but my final reconstruction image looks like this:
https://drive.google.com/file/d/0Bx1aNPhwJU4kMmt1cUVHVXBOLWM/edit?usp=sharing
You can compare this with the one which is shown in the video link given in that blog.
Things that I have tried:
Checked if all the required libraries are installed. I believe otherwise the code wouldn't compile and give me any results.
Checked if I have a graphics support on my machine:
$lspci | grep VGA
09:00.0 VGA compatible controller: NVIDIA Corporation G71GL [Quadro FX 3500] (rev a1)
My doubts:
If there is some library missing for OpenGL or OpenCV or PCL which is making the 3D reconstruction window suffer.
The controversial reprojectImageTo3D() function in OpenCV which is also used in the code by Martin Peris.
Some other reason that one of you could help me with ;-)
Other details:
Ubuntu Version : 12.04
OpenCV Version : 2.3.1-7
Any suggestions would really be helpful!
Thanks,
Pratul
RESOLVED!
It was actually a driver issue with my graphics card. To solve it I wiped off the currently installed driver and then re-installed an updated one and that worked like a charm.
Details of this solution I have posted on the PCL mailing list as I didn't wanted to repeat myself here.
enter link description here
I hope this helps.

what are the advantages of using javacv than opencv?

I'am developing an eye gaze estimation desktop application for my final year project. I wanted to know what are the main advantages of using javaCV instead of OpenCV ?
OpenCV is a very good Computer visio library. It has C, C++ and Python API. JavaCV is Wrapper of OpenCV using java.
Based on your application you can use native C API using Android NDK. If you are focus on Java then you can use JavaCV.
Also you can have a look at this and some tutorial.
JavaCV is just a non-official Java version of OpenCV.
That said, use JavaCV if you are going to develop in Java, and use OpenCV otherwise.
There is no tutorial for javacv. Sometimes you can't find the curresponding java implementation for Opencv's class(c++ code).Don't get frustrated.Just try to implement it in your own way and open source it.So, others can use it.Be a leader.All the best.

Resources