Python
Python
Last Updated: 2025 年 7 月 28 日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...
environment-setup
Last Updated: 2025 年 6 月 30 日Overview This example help you make sure all the development environment is set up correctly Expect Output Tutorial Full code environment_setup.py
hello-lipsedge-sdk
Last Updated: 2025 年 6 月 30 日Overview This example shows how to connect to camera and get device info. Expect Output Tutorial Or you can use open(openni::ANY_DEVICE) to connect to the first found device. Full code hello-lipsedge-sdk.py
opencv-viewer
Last Updated: 2025 年 6 月 30 日Overview This article shows how to convert OpenNI2 video frames to OpenCV Mat format. Once you have frame in Mat format, you can leverage all OpenCV functions. Expect Output Tutorial Full code opencv_viewer.py
roi
Last Updated: 2025 年 6 月 30 日Overview This example demonstrate how get the depth information with ROI using openCV function. Expect Output Prerequisite Tutorial Full code roi.py
depth-data
Last Updated: 2025 年 6 月 30 日Overview The most important thing while using 3D cameras is to get the depth value. This demo shows how to get the depth data from camera frame. Move the mouse in an OpenCV window and obtain the depth value of the mouse cursor position. Expect Output Prerequisite Tutorial Full code depth_data.cpp
align-depth-color
Last Updated: 2025 年 6 月 30 日Overview The depth sensor and the RGB sensor are positioned differently on the camera, resulting in a slight displacement between the images captured by each sensor. To align the depth and RGB images, we need to enable the “Registration” setting. Expect Output Prerequisite Tutorial Modify from opencv_viewer. After getting color and depth frame, we use...
range-filter
Last Updated: 2025 年 6 月 30 日Overview Since depth camera can measure the distance for each pixel. We can easily build a range filter, focusing of specific distance of data that we want are interesting in. Expect Output Prerequisite Tutorial Modify from opencv_viewer. After getting color and depth frame, we use opencv threshold function to filter out distance less than threasholdValueDown...
remove-background
Last Updated: 2025 年 6 月 30 日Overview This example shows you how to remove the background of an image using depth camera with range filter. Expect Output Prerequisite Tutorial Modify from range-filter, we add two variables to determinate the desired distance. Then add two keyboard shorcut to set these values. Using these two values to create range filter mask image like...
record
Last Updated: 2025 年 6 月 30 日Overview This example shows you how to remove the background of an image using depth camera with range filter. Expect Output After recording, we will get a record.oni file. Using NiViewer, you can replay the recording frames. Prerequisite Tutorial Create a openni::Recorder object to control the recording. You can choose which stream you want to...