-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn on both the color channel and the depth channel, an error is thrown-----rs2::backend_error #13594
Comments
Hi @kummerrrrrr Are both streams able to display simultaneously if you change the FPS speed for both streams to the minimum supported speed of '6' Are you running your C++ script and YOLOv8 at the same time? Only one program at a time can access a particular stream. For example, if you launched YOLO first and then your C++ script secondly afterwards, the script would not be able to use a stream that YOLO was already using. |
Hi |
Input / output errors do indeed indicate a possible problem with the USB system (either the USB port or the USB cable). Are you using the official 1 meter long USB cable supplied with the camera or another USB cable that you supplied yourself, please? |
I used a USB 3.0 extension cable, 3 meters long, connected to the official 1 meter long USB cable (due to venue reasons, my computer cannot be connected to the official cable) |
When using USB cables longer than 2 meters it is important that the cable is high quality, otherwise performance can be unstable or the camera may disconnect. Cables should ideally also be 'USB 3.1 Gen 1' rather than 3.0, as RealSense 400 Series cameras only minimally supported 3.0 even when they were first released 7 years ago. |
I get it, thanks for your answer. |
hi #include <librealsense2/rs.hpp> using namespace std; int main()
} Thread 1 "my_program" received signal SIGABRT, Aborted. |
Are you able to stream depth and color simultaneously in the realsense-viewer tool, as you mntioned earlier that you were able to open the camera in it. It looks as though you are using C# code. Is the RealSense SDK's official 'Capture' C# example program at the link below that uses both depth and color able to run successfully? |
pipeline pip;
config cfg;
//Only one of them can be enabled
cfg.enable_stream(RS2_STREAM_COLOR, 1280, 720, RS2_FORMAT_BGR8, 30);
cfg.enable_stream(RS2_STREAM_DEPTH, 1280, 720, RS2_FORMAT_Z16, 15);
pip.start(cfg);
I use a USB 3.0 extension cable, is it possible that the bandwidth is insufficient? I was able to open the D435i camera using the realsense-viewer command.
By the way, I used the camera for YOLOv8 inference, and the input size is (640,640), does this have an effect on the opening of the color stream and the depth stream?
THANKS!!!
The text was updated successfully, but these errors were encountered: