提交 688ebd89 编写于 作者: D Dmitry Trifonov

add support for multiple OpenNI2 devices

上级 72ec6431
......@@ -231,6 +231,14 @@ CvCapture_OpenNI2::CvCapture_OpenNI2( int index )
return;
}
// find appropriate device URI
openni::Array<openni::DeviceInfo> ldevs;
if (index > 0)
{
openni::OpenNI::enumerateDevices(&ldevs);
deviceURI = ldevs[index].getUri();
}
status = device.open(deviceURI);
if( status != openni::STATUS_OK )
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册