title: To Display RGB video frame using opencv and kinect primesense camera?
body: <p>I have a OpenCV project written with OpenCV 2.4.6 (Without OpenNI) in Visual studio 2012.</p>
  
  <p>Project uses integrated webcam but now I want to use Kinect camera for RGB frames instead of webcam.</p>
  
  <ol>
  <li>Is it possible to use Kinect prime sense camera without using OpenNI installed?</li>
  <li>Do I need to install OpenNI and link it to OpenCV and all stuff just to use RGB camera from Prime sense device?</li>
  </ol>
  
  <p>Currently I am writing following code:</p>
  
  <pre><code>VideoCapture capture(CV_CAP_OPENNI); // I have tried with capture(0), capture(1)
  
  if(!(capture.isOpened())){
      cout &lt;&lt; "OPENCV:Cannot open the WebCamera" &lt;&lt; endl;
      return -1;
  }
  </code></pre>
  
  <p>And result is that it's not able to open capture and it fails here. I am new to all this and please explain if I need to install anything or include anything? I have already installed Prime sense drivers. Thanks.</p>