https://blog.csdn.net/qq_22598167/article/details/89948089

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python

1.github上下载最新librealsense包

2.cd librealsense

mkdir builde && cd build

cmake-gui

配置

make -j8

make install

3.Alternatively, copy the build output (librealsense2.so and pyrealsense2.so) to python_root

  • Note: Python 3 module filenames may contain additional information, e.g. pyrealsense2.cpython-35m-arm-linux-gnueabihf.so)

4.activate一个conda环境

pip3 install pyrealsense2

5.(!!!重要 !!!)update your PYTHONPATH environment variable to add the path to the pyrealsense library

export PYTHONPATH=$PYTHONPATH:/root/anaconda3/lib/

 

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐