Open Pruetikorn1224 opened 3 years ago
Hi @Pruetikorn1224 This is an error where the code can be okay but the error occurs because of the particular computer that it is installed on, whilst the code may work fine on a different computer.
If you do not have another computer to try it on and you built the wrapper from source code on Python 3.8, there is now the option to build the Python wrapper for Python 3.8 and 3.9 using the pip install pyrealsense2 instruction.
@MartyG-RealSense Ok, so I will change my computer to test on.
Thank you
Issue Description
Currently, I'm working on project on realsense d435i.
import pyrealsense2 as rs import numpy as np import cv2
pipeline = rs.pipeline() config = rs.config()
pipeline_wrapper = rs.pipeline_wrapper(pipeline) pipeline_profile = config.resolve(pipeline_wrapper) device = pipeline_profile.get_device() device_product_line = str(device.get_info(rs.camera_info.product_line))
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)
try: while True:
except Exception as e:
finally:
and I receive this error.
Frame didn't arrive within 5000 Device: <pyrealsense2.device: Intel RealSense D435I (S/N: 046222071432)> Product Line: D400
How to fix this?