IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.58k stars 4.82k forks source link

Frame didn't arrive within 5000 #12055

Closed SylvanSi closed 11 months ago

SylvanSi commented 1 year ago

Required Info
Camera Model D435f
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version Ubuntu 20.04
Platform
SDK Version { legacy / 2.<?>.<?> }
Language python
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

Frame didn't arrive within 5000

current SWversion 2.54.1.0 rs-capture can get video realsense-viewer can open the program but when use python to run the code, it shows
frames = pipeline.wait_for_frames() RuntimeError: Frame didn't arrive within 5000

Please look at this problem for me. Thanks:)

Nataraj-github commented 6 months ago

Hi team, I am trying to install pyrealsense in vis code but I am unable to find proper reference or documentation to do so. Could you help me to install the same in Viscode?Thanks in advance.

On Wed, Jan 31, 2024 at 5:18 AM MartyG-RealSense @.***> wrote:

You are very welcome. It's excellent to hear that RSUSB = true resolved your issue. Thanks very much for the update!

— Reply to this email directly, view it on GitHub https://github.com/IntelRealSense/librealsense/issues/12055#issuecomment-1918803048, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCXU4VNONSXFAHZB2FWI6MTYRIK5RAVCNFSM6AAAAAA26EPJH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJYHAYDGMBUHA . You are receiving this because you were mentioned.Message ID: @.***>

--

Thanks & Regards,

Nataraj Eswarachandra.

MartyG-RealSense commented 6 months ago

Hi @Nataraj-github Are you referring to Visual Studio Code, please? If you are then the approach that I have seen a couple of times from Viscode users is to install pyrealsense2 from a wheel package with the instruction below:

pip install pyrealsense2

The link below has more details.

https://github.com/IntelRealSense/librealsense/issues/11789

The pip install instruction can be used with Python 3.7 to 3.11 on a PC and Python 3.7 to 3.9 on an Arm-based computer. If you want to use a newer Python version than these then the pyrealsense2 wrapper has to be installed from source code.

https://github.com/IntelRealSense/librealsense/issues/980#issuecomment-356097825 discusses installing pyrealsense2 from source in Visual Studio, though the procedure may not be the same for VS Code.