C++
C++
Last Updated: 2025 年 7 月 28 日Examples Name Description environment-setup Help you make sure build environment is setup correctly hello-lipsedge-sdk How to connect to camera and get camera info opencv-viewer Use OpenCV to display Color, depth and IR images roi How to set the ROI of image frame depth_data Get the depth value by pixel coordinate (x,y) align-depth-color Align depth and...
environment-setup
Last Updated: 2025 年 6 月 26 日Overview This example help you make sure all the development environment is set up correctly Expect Output Tutorial Full code environment_setup.cpp
hello-lipsedge-sdk
Last Updated: 2025 年 6 月 26 日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.cpp
opencv-viewer
Last Updated: 2025 年 6 月 26 日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.cpp
roi
Last Updated: 2025 年 6 月 26 日Overview This example demonstrate how get the depth information with ROI using openCV function. Expect Output Prerequisite Tutorial Full code roi.cpp
depth-data
Last Updated: 2025 年 9 月 5 日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 年 9 月 5 日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 年 9 月 5 日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 月 26 日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 shortcut to set these values. Using these two values to create range filter mask image like...
record
Last Updated: 2025 年 6 月 26 日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.Copy You can choose which stream you want to...
pointcloud
Last Updated: 2025 年 6 月 26 日Overview Use depth value to calculate point cloud. Using OpenGL(GLFW) to display. Expect Output Prerequisite To use OpenGL, we need to install GLFW library. Windows Download prebuilt from GFLW. Unzip then set the path in CMakeList.txt Linux Install by apt. Add linked libraries in CMakeLists.txtCopy Tutorial We declare pointData to store the pointcloud data of...
config-resolution
Last Updated: 2025 年 6 月 26 日Overview In LIPSEdge SDK, we use video mode to set different resolution, FPS and data format. This example shows you how to use video mode settings. Expect Output Prerequisite Tutorial We first get all available video modes of each stream by the following code. Video mode include resolution, FPS and pixel format information. Then we...
camera-parameter
Last Updated: 2025 年 6 月 26 日Overview Get the parameters of the camera intrinsic and distortion values. Expect Output Prerequisite Tutorial We first include LIPSNICustomProperty.h which is inside our LIPSEdge SDK. This header file provide multiple handy functions and data structs like RadialDistortionCoeffs, radialDistCoeffs etc. To get different parameters we use openni::VideoStream::getProperty() with different property index. All of this index are...