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
We use LIPSedge AE400 Realsense SDK in this example. If you haven't install it, checkout Install LIPSedge AE400 RealSense SDK for details
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.
Comments