Using AstraPro depth camera under windows

Precautions

Currently under Windows, it seems that only the officially provided OpenNI2 SDK can be used to operate the camera. It doesn't work with Orbbec SDK.
I don't know if I haven't configured it properly somewhere.

download

Go to the official website to download the driver
[driver download address]
Insert image description here
and sdk
[SDK download address]
Insert image description here

use

There are samples in the downloaded OpenNISDK, which are all routines, you can refer to them.
Insert image description here
Pay special attention to the fact that it is impossible to obtain color images through openni. It can only be obtained through UVC.

    // 这样不行
    const SensorInfo *info = device.getSensorInfo(SENSOR_COLOR);

    // 这样可以
    UVC_Swapper uvsSwapper;
    uvsSwapper.UvcInit();

Guess you like

Origin blog.csdn.net/joyopirate/article/details/130889594