(base) hxwang@raspberrypi:~/realsense_build/librealsense-master/build/wrappers/python $ sudo pip install . --break-system-packages
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /home/hxwang/realsense_build/librealsense-master/build/wrappers/python
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyrealsense2
Building wheel for pyrealsense2 (setup.py) ... done
Created wheel for pyrealsense2: filename=pyrealsense2-2.55.1-py3-none-any.whl size=520734 sha256=539e7b9fff0c8de7d6eb732ae8a7755de26c5f44367fabf225fdaeee429075ef
Stored in directory: /tmp/pip-ephem-wheel-cache-90lin6tz/wheels/c2/26/b6/af813fa561492a8526f6a535300afb985818e02a66048d71f2
Successfully built pyrealsense2
Installing collected packages: pyrealsense2
Attempting uninstall: pyrealsense2
Found existing installation: pyrealsense2 2.55.1
Uninstalling pyrealsense2-2.55.1:
Successfully uninstalled pyrealsense2-2.55.1
Successfully installed pyrealsense2-2.55.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
(base) hxwang@raspberrypi:~/realsense_build/librealsense-master/build/wrappers/python $ python -c "import pyrealsense2 as rs; print(dir(rs))"
['BufData', 'D400', 'D500', 'DEPTH', 'L500', 'SR300', 'STAEControl', 'STAFactor', 'STCensusRadius', 'STColorControl', 'STColorCorrection', 'STDepthControlGroup', 'STDepthTableControl', 'STHdad', 'STRauColorThresholdsControl', 'STRauSupportVectorControl', 'STRsm', 'STSloColorThresholdsControl', 'STSloPenaltyControl', 'T200', 'TRACKING', '__doc__', '__file__', '__full_version__', '__loader__', '__name__', '__package__', '__spec__', '__version__', 'align', 'any', 'any_intel', 'auto_calibrated_device', 'calib_target_type', 'calibration_change_device', 'calibration_status', 'calibration_type', 'camera_info', 'color_sensor', 'colorizer', 'composite_frame', 'config', 'context', 'debug_protocol', 'debug_stream_sensor', 'decimation_filter', 'depth_frame', 'depth_sensor', 'depth_stereo_sensor', 'device', 'device_calibration', 'device_list', 'disparity_frame', 'disparity_transform', 'distortion', 'enable_rolling_log_file', 'event_information', 'extension', 'extrinsics', 'filter', 'filter_interface', 'firmware_log_message', 'firmware_log_parsed_message', 'firmware_logger', 'fisheye_sensor', 'format', 'frame', 'frame_metadata_value', 'frame_queue', 'frame_source', 'hdr_merge', 'hole_filling_filter', 'intrinsics', 'l500_visual_preset', 'log', 'log_message', 'log_severity', 'log_to_callback', 'log_to_console', 'log_to_file', 'matchers', 'max_usable_range_sensor', 'motion_device_intrinsic', 'motion_frame', 'motion_sensor', 'motion_stream', 'motion_stream_profile', 'non_intel', 'notification', 'notification_category', 'option', 'option_from_string', 'option_range', 'option_type', 'option_value', 'options', 'options_list', 'pipeline', 'pipeline_profile', 'pipeline_wrapper', 'playback', 'playback_status', 'pointcloud', 'points', 'pose', 'pose_frame', 'pose_sensor', 'pose_stream', 'pose_stream_profile', 'processing_block', 'product_line', 'quaternion', 'recorder', 'region_of_interest', 'reset_logger', 'roi_sensor', 'rs2_deproject_pixel_to_point', 'rs2_fov', 'rs2_project_color_pixel_to_depth_pixel', 'rs2_project_point_to_pixel', 'rs2_transform_point_to_point', 'rs400_advanced_mode', 'rs400_visual_preset', 'save_single_frameset', 'save_to_ply', 'sensor', 'sequence_id_filter', 'serializable_device', 'software_device', 'software_motion_frame', 'software_notification', 'software_pose_frame', 'software_sensor', 'software_video_frame', 'spatial_filter', 'stream', 'stream_profile', 'sw_only', 'syncer', 'temporal_filter', 'terminal_parser', 'texture_coordinate', 'threshold_filter', 'timestamp_domain', 'units_transform', 'updatable', 'update_device', 'vector', 'vertex', 'video_frame', 'video_stream', 'video_stream_profile', 'wheel_odometer', 'yuy_decoder']
(base) hxwang@raspberrypi:~/realsense_build/librealsense-master/build/wrappers/python $ cd
(base) hxwang@raspberrypi:~ $ cd yolov5
(base) hxwang@raspberrypi:~/yolov5 $ python 3D_rappy.py
Traceback (most recent call last):
File "/home/hxwang/yolov5/3D_rappy.py", line 16, in <module>
pipeline = rs.pipeline()
^^^^^^^^^^^
AttributeError: module 'pyrealsense2' has no attribute 'pipeline'
(base) hxwang@raspberrypi:~/yolov5 $
最新发布