Intel RealSense file: rs_depth = np.asanyarray(rs_depth.get_data()) depth_scale = depth_sensor.get_depth_scale() # e.g., 0.001 for mm to meters Pass the depth_scale When collecting depth: distance = depth_image[y, x] * depth_scale
Intel RealSense file:
rs_depth = np.asanyarray(rs_depth.get_data())
depth_scale = depth_sensor.get_depth_scale() # e.g., 0.001 for mm to meters
Pass the depth_scale
When collecting depth:
distance = depth_image[y, x] * depth_scale