# Retrieves mapping between the units of the depth image and meters.
pipeline = rs.pipeline()
config = rs.config()
profile = pipeline.start(config)
# 返回深度单位
depth_sensor = profile.get_device().first_depth_sensor()
depth_scale = depth_sensor.get_depth_scale()
print("Depth Scale is: " , depth_scale)
引用:https://ask.youkuaiyun.com/questions/7183319
官方文档地址:https://intelrealsense.github.io/librealsense/python_docs/_generated/pyrealsense2.depth_sensor.html#pyrealsense2.depth_sensor.get_depth_scale