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]
and sdk
[SDK download address]
use
There are samples in the downloaded OpenNISDK, which are all routines, you can refer to them.
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();