I have a OpenCV project written with OpenCV 2.4.6 (Without OpenNI) in Visual studio 2012.
Project uses integrated webcam but now I want to use Kinect camera for RGB frames instead of webcam.
- Is it possible to use Kinect prime sense camera without using OpenNI installed?
- Do I need to install OpenNI and link it to OpenCV and all stuff just to use RGB camera from Prime sense device?
Currently I am writing following code:
VideoCapture capture(CV_CAP_OPENNI); // I have tried with capture(0), capture(1)
if(!(capture.isOpened())){
cout << "OPENCV:Cannot open the WebCamera" << endl;
return -1;
}
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.