Can not grab image from VideoCapture OpenCV with Asus Xtion Pro Live

后端 未结 1 1172
轻奢々
轻奢々 2021-01-16 12:41

I just installed OpenCV 2.4.7 with OpenNI and primesense Sensor as it can be seen in the following build information.

I have problems grabb

相关标签:
1条回答
  • 2021-01-16 13:16

    Based on your code my guess is that will use the kinect openni driver as opposed to the asus openni driver

    How about this:

    VideoCapture capture;
    
    capture.open(CV_CAP_OPENNI_ASUS);
    
    if ( !capture.isOpened() )
    {
        cout << "Error opening capture" << endl;
        return -1;
    }
    
    
    if( !capture.grab() )
    {
        cout << "Can not grab image" << endl;
    }
    

    I have managed to use two asus xtion pro sensors with opencv in the past, you can see my test code here.

    Also, these are the values from the highui types header, with comments:

    CV_CAP_OPENNI   =900,   // OpenNI (for Kinect)
    CV_CAP_OPENNI_ASUS =910,   // OpenNI (for Asus Xtion)
    
    0 讨论(0)
提交回复
热议问题