top of page
  • Writer's pictureLIPS

使用 Python 取得 LIPSedge AE400 3D 相機框架中心點的深度

Updated: Jan 16, 2023



Overview


In this article, we would like to demonstrate how to write a simple program that get the depth of the center point of the camera frame using Python with LIPSedge AE400.


Prerequisite


Coding

Chose your favorite IDE or text editor to create source code file hello-lips-ae.py with content below . The code simply create a RealSense API object for video streaming. Get one frame and retrieve the depth data on the center of that frame. You can see the comment for line by line explanation.

  • hello-lips-ae.py

Run



Tip

  • Python module conflict - If you install pyrealsense2 through package manager like pip. The module you installed is located at the default module search path. Set environment variable PYTHONPATH to the directory where LIPSedge AE400 RealSense SDK built for Python to search the module we built.


The original article is from LIPS Help Center. If you have any questions, please post them to LIPS Forum.

100 views0 comments
bottom of page