none
Kinect 2 Support on OpenCV through OpenNI2 (with Kinect 2 driver) RRS feed

  • Question

  • Hello community,

    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? Is there anything I am missing in the linking or placing of the .dll's in the right folders?

    Kindly help.

    Best Regards,

    ANirudh

    Wednesday, January 27, 2016 10:49 PM

All replies

  • https://github.com/UnaNancyOwen/Kinect2Sample

    Has all the sdk samples (using the normal driver) with openCV integration and I think would be a better place to start than trying to get openNI2 running.

    Thursday, January 28, 2016 7:38 AM