当前位置:网站首页>openni. utils. OpenNIError: (OniStatus.ONI_STATUS_ERROR, b‘DeviceOpen using default: no devices found‘

openni. utils. OpenNIError: (OniStatus.ONI_STATUS_ERROR, b‘DeviceOpen using default: no devices found‘

2022-06-23 07:48:00 Programmers evolve without losing their hair!

This time I was windows Pass through python call astra To get a depth map

By looking at openni Source code discovery , Finally called dll Before you install openni The catalog of OpenNI_2.3.0.66.zip Zero points download

There are two ways ,

One is to add the driver file to your installation directory

As I am D:\\PCL 1.8.1\\3rdParty\\OpenNI2\\Redist
The common default is C:\Program Files\OpenNI2\Redist\OpenNI2\Drivers

 Insert picture description here

The second is to change the source code , Then add the driver file to the project path

This kind of project is easy to use when migrating ( Of course, you should remember to migrate the project environment together )
Here is 88 Add this line
 Insert picture description here
Then the driver file is divided into three files and a folder
Put it in your project directory
 Insert picture description here

The successful running

 Insert picture description here

原网站

版权声明
本文为[Programmers evolve without losing their hair!]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230711577407.html