frameset = pipe.wait_for_frames() RuntimeError: Frame didn't arrive within 5000
Hi if I run this code Im getting error as frameset = pipe.wait_for_frames() RuntimeError: Frame didn't arrive within 5000
import cv2
import numpy as np
import matplotlib.pyplot as plt
import pyrealsense2 as rs
pipe = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.depth, 1280, 720, rs.format.z16, 15)
config.enable_stream(rs.stream.color, 960, 540, rs.format.bgr8, 15)
profile = pipe.start(config)
frameset = pipe.wait_for_frames()
color_frame = frameset.get_color_frame()
color_init = np.asanyarray(color_frame.get_data())
-
Hi Janeelona2350576 Are you able to receive frames if you place wait_for_frames() inside a try: while True streaming loop like in the pyrealsense2 wrapper's example test program at the link below, please?
Please sign in to leave a comment.
Comments
2 comments