structureio / OpenNI2

OpenNI2
Apache License 2.0
981 stars 449 forks source link

windows - structure - cannot find device #132

Open kyranf opened 6 years ago

kyranf commented 6 years ago

I have a Structure sensor from Occipital, i'm trying to get it running for a quick evaluation on depth capture images. It's turning out to be difficult!

I installed the Windows x64 package from here: https://structure.io/openni

I followed the instructions on the document on how to modify the Openni driver .ini files to set the required line to be: UsbInterface=0

I also set Openni.ini to Verbose = 0 and LogToConsole (from some tests already and some research).

I then launch NiViewer.exe and this is what is printed:

     1419 INFO       --- Filter Info --- Minimum Severity: VERBOSE
     1793 VERBOSE    No override device in configuration file
     3412 VERBOSE    Configuration has been read from 'C:\Program Files\OpenNI2\Tools\OpenNI.ini'
     3555 VERBOSE    OpenNI 2.2.0 (Build 33)-Win32 (Nov 12 2013 16:11:44)
     3677 VERBOSE    Using 'C:\Program Files\OpenNI2\Tools\OpenNI2\Drivers' as driver path
     3872 VERBOSE    Looking for drivers in drivers repository 'C:\Program Files\OpenNI2\Tools\OpenNI2\Drivers'
     5612 WARNING    Failed to load library 'Kinect.dll'. Error code: 126
     5697 VERBOSE    Couldn't use file 'Kinect.dll' as a device driver
     7041 INFO       New log started on 2017-11-24 12:45:20
     7191 INFO       --- Filter Info --- Minimum Severity: VERBOSE
    11501 INFO       New log started on 2017-11-24 12:45:20
    11548 INFO       --- Filter Info --- Minimum Severity: VERBOSE
    12972 VERBOSE    Trying to open device by URI '(NULL)'
    13076 ERROR      Can't open default device - none found
openDevice failed:
        DeviceOpen using default: no devices found

Press any key to continue . . .

Is there a step i'm missing? I have exactly the same issue on Windows 7 Professional and Windows 10 Home, two different computers.

If I have to adjust the PS1080 .ini files, why is the NiViewer program trying to load/use Kinect drivers (a different set of .ini and .dll in the Drivers folder..). How can I force it to use the PS1080 drivers?

joondong commented 6 years ago

Have you solved this problem?

kyranf commented 6 years ago

No, I could not get the Structure sensor working on anything.

saroj31 commented 6 years ago

Hello I have a similar issue on my side too. I am using a Windows 10 PC. I even tried to install from the github code of OpenNI instead of using the binaries given in the above mentioned link.

When I tried to debug the code then I see the URI is NULL. What I have understood the function which opens the device using the device driver is expecting a string of URI. I don't know how to provide the URI to the function.

Please help to provide the URI string format if anyone of you know it. I want to try that too.