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 (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:

    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 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,


    Wednesday, January 27, 2016 10:49 PM

All replies


    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