pythonから色々したい時のメモ
取得解像度の設定
.py
pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)
pipeline.start(config)
深度取得@(x, y)
.py
frames = pipeline.wait_for_frames()
depth_frame = frames.get_depth_frame()
dist = depth_frame.get_distance(x, y)