Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Run Asus Xtion with HighGUI - HOWTO?!

Hi,

I am trying to make the Asus Xtion pro live work with my computer. I am using ubuntu 12.04 with Opencv 2.4.6.1. I have been trying this for quite some time now but I cannot make it work.

I downloaded the the tools from http://www.asus.com/Multimedia/Xtion_PRO_LIVE/#support_Download_5 a. PrimeSense Software Package 20.4.2.20 : 1. OpenNI Framework (Version 1.5.2.23) 2. Sensor DDK (version 5.1.0.41) 3. NITE (version 1.5.2.21) 4. USB driver (version 3.1.3.1)

Then I followed the installation instructions and tried to run the Xtion in NiViewer, which works fine. After that I wanted to make the example code on http://docs.opencv.org/doc/user_guide/ug_highgui.html run.

But when I try to run the code, I get the the error Message "Can not open a capture object", which is cause by

if( isVideoReading )
        capture.open( filename );
    else
        capture.open(CV_CAP_OPENNI );

    cout << "done." << endl;

    if( !capture.isOpened() )
    {
        cout << "Can not open a capture object." << endl;
        return -1;
    }

This is what is mentioned in 2. on http://docs.opencv.org/doc/user_guide/ug_highgui.html. How can I change the CMake variables in Codeblocks? I have no CMakeLists.txt as I just created an empty project and added a .cpp file.

Thanks!

click to hide/show revision 2
retagged

updated 2013-10-01 07:36:35 -0600

berak gravatar image

Run Asus Xtion with HighGUI - HOWTO?!

Hi,

I am trying to make the Asus Xtion pro live work with my computer. I am using ubuntu 12.04 with Opencv 2.4.6.1. I have been trying this for quite some time now but I cannot make it work.

I downloaded the the tools from http://www.asus.com/Multimedia/Xtion_PRO_LIVE/#support_Download_5 a. PrimeSense Software Package 20.4.2.20 : 1. OpenNI Framework (Version 1.5.2.23) 2. Sensor DDK (version 5.1.0.41) 3. NITE (version 1.5.2.21) 4. USB driver (version 3.1.3.1)

Then I followed the installation instructions and tried to run the Xtion in NiViewer, which works fine. After that I wanted to make the example code on http://docs.opencv.org/doc/user_guide/ug_highgui.html run.

But when I try to run the code, I get the the error Message "Can not open a capture object", which is cause by

if( isVideoReading )
        capture.open( filename );
    else
        capture.open(CV_CAP_OPENNI );

    cout << "done." << endl;

    if( !capture.isOpened() )
    {
        cout << "Can not open a capture object." << endl;
        return -1;
    }

This is what is mentioned in 2. on http://docs.opencv.org/doc/user_guide/ug_highgui.html. How can I change the CMake variables in Codeblocks? I have no CMakeLists.txt as I just created an empty project and added a .cpp file.

Thanks!