Skip to content

Instantly share code, notes, and snippets.

@pabloalcain
Created June 24, 2019 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pabloalcain/65610225deb0ae9335e66e1a6c755c57 to your computer and use it in GitHub Desktop.
Save pabloalcain/65610225deb0ae9335e66e1a6c755c57 to your computer and use it in GitHub Desktop.
Bug in capturing on Intel D415 RealSense
import pyrealsense2 as rs
pipeline = rs.pipeline()
profile = pipeline.start()
align = rs.align(rs.stream.color)
all_color_frames = []
all_depth_frames = []
for i in range(20):
print(i)
frames = pipeline.wait_for_frames()
# frames = align.process(frames)
depth = frames.get_depth_frame()
color = frames.get_color_frame()
all_depth_frames.append(depth)
all_color_frames.append(color)
import pyrealsense2 as rs
from copy import copy
pipeline = rs.pipeline()
profile = pipeline.start()
align = rs.align(rs.stream.color)
all_color_frames = []
all_depth_frames = []
for i in range(20):
print(i)
frames = pipeline.wait_for_frames()
# frames = align.process(frames)
depth = frames.get_depth_frame()
color = frames.get_color_frame()
all_depth_frames.append(copy(depth))
all_color_frames.append(copy(color))
import pyrealsense2 as rs
pipeline = rs.pipeline()
profile = pipeline.start()
align = rs.align(rs.stream.color)
all_color_frames = []
all_depth_frames = []
for i in range(20):
print(i)
frames = pipeline.wait_for_frames()
frames = align.process(frames)
depth = frames.get_depth_frame()
color = frames.get_color_frame()
all_depth_frames.append(depth)
# all_color_frames.append(color)
import pyrealsense2 as rs
from copy import copy
pipeline = rs.pipeline()
profile = pipeline.start()
align = rs.align(rs.stream.color)
all_color_frames = []
all_depth_frames = []
for i in range(20):
print(i)
frames = pipeline.wait_for_frames()
frames = align.process(frames)
depth = frames.get_depth_frame()
color = frames.get_color_frame()
all_depth_frames.append(copy(depth))
# all_color_frames.append(color)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment