Hi @Try-Hello There was a Jetson case involving AttributeError: module 'pyrealsense2' has no attribute 'pipeline' where the solution in that particular case was found to be to copy .so files to the same directory that the user's project script was in. #7078 (comment) 👍 1 Author T...
import cv2 from ultralytics import YOLO import pyrealsense2 as rs import numpy as np pipe = rs.pipeline() profile = pipe.start() model = YOLO('yolov8n-seg.pt') try: while True: frames = pipe.wait_for_frames() color_frame = frames.get_color_frame() if not color_frame: print("...
import pyrealsense2 as rs # Create a context object. This object owns the handles to all connected realsense devices pipeline = rs.pipeline() pipeline.start() 1. 2. 3. 4. 5. 6. Python codes ref:Sample Code for Intel® RealSense™ Python Wrapper 如果要获取颜色图和深度图的话,可以参考...
librealsense/wrappers/python/examples$ python opencv_viewer_example.py Traceback (most recent call last): File "/home/mona/librealsense/wrappers/python/examples/opencv_viewer_example.py", line 13, in <module> pipeline = rs.pipeline() AttributeError: module 'pyrealsense2' has no attribute '...