Examples #
Name | Description |
---|---|
environment_setup | Help you verify development environment setting |
hello-lipsdege-sdk | Connect to the camera and print camera info |
opencv_viewer | Retrieve camera frames, convert to OpenCV Mat then display |
roi | Region of interest |
depth_data | Get the depth value by pixel coordinate (x,y) |
align-depth-color | Align depth and RGB frame to the same coordinate |
range_filter | Get the data only in desired distance only |
remove-background | Use range filter to filter out the background |
record | Record camera streams for NiViewer playback |
Prerequisite #
Make sure to install OpenNI2 SDK first.
Install openni python package. #
pip3 install openni
Import package #
from openni import openni2
Initialize with OpenNI REDIST
folder path #
openni2.initialize(os.environ['OPENNI2_REDIST'])