平台:
WIN10+python3.6.4/python2.7
准备:
1. Intel® RealSense™ SDK 2.0 (Build 2.13.0):(官方SDK,非必须,主要是调试用)
https://github.com/IntelRealSense/librealsense/releases
2. SDK 2.0 Python Wrapper:(官方源码与python例程,必须)
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python#examples
3. SR300 DCM driver:(intel_rs_dcm_sr300_3.3.27.5718.exe,驱动文件,必须)
https://downloadcenter.intel.com/product/92329/Intel-RealSense-Camera-SR300
余下步骤:
1.安装完1后,将C盘中RS的SDK里编译好的.pyd文件pyrealsense2.pyd文件复制到你的python site-package文件夹即可(如C:\Users\Administrator\Anaconda3\Lib)。
2.按准备步骤2中的说法,还需要将bin目录中已经预编译好的realsense2.dll and pyrealsense2.pyd放在python工程文件旁。
3.新建python工程,可以跑例程了。Enjoy!
参考:
intel官方github:
https://github.com/IntelRealSense/librealsense
简书:intelRealsense python开发环境搭建
https://www.jianshu.com/p/c7c060bab73f