top of page

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

  • 作家相片: LIPS
    LIPS
  • 2021年11月24日
  • 讀畢需時 1 分鐘

已更新:2023年1月16日


ree

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

ree

Run

ree

ree

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.

ree

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

留言


bottom of page