the RGB image of the Astra pro can not be accessed neither via the SDK nor with OpenNI… has someone been able to do it in some way? or is the camera of the sensor “useless” until we get the support for the Astra SDK? I’m feeling kind of disappointed right now…
while (true)
{
VideoCapture cap(1); // open the default camera
if (!cap.isOpened()) // check if we succeeded
return -1;
Mat edges;
namedWindow(“Frame”, 1);
for (;
{
Mat frame;
cap >> frame; // get a new frame from camera
cvtColor(frame, edges, CV_BGR2GRAY);
imshow(“Frame”, frame);
if (waitKey(30) >= 0) break;
}
// the camera will be deinitialized automatically in VideoCapture destructor
return 0;
}
// clean up and release resources
cvReleaseImage(&frame);
return 0;
}
You will need to install and set OpenCV up before which is could be complicated sometimes.
By far seems it is good way to capture the rgb image, but I found that the captured rgb image through opencv has a 0.8s ahead of the depth image captured at the same instant.