IntelRealSense / librealsense

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

How to enable Left and Right Camera of d455 at the same time on Android platform(RK3588 with kernel version 5.10.66) #13165

Closed rivercream09 closed 4 weeks ago

rivercream09 commented 1 month ago

Required Info
Camera Model { R200 / F200 / SR300 / ZR300 / D400 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS
Kernel Version (Linux Only) (e.g. 4.14.13)
Platform PC/Raspberry Pi/ NVIDIA Jetson / etc..
SDK Version { legacy / 2.<?>.<?> }
Language {C/C#/labview/nodejs/opencv/pcl/python/unity }
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

<Describe your issue / question / feature request / etc..>

MartyG-RealSense commented 1 month ago

Hi @rivercream09 Unless your camera is being detected by the RealSense Android wrapper as being on a USB 3 connection and not 2.1 then you will not be able to access the right infrared stream, as the right-side IR is only available on a USB3 connection.

If you do have a USB 3 connection then the Android code below, which I have adapted for displaying both IR streams, might be helpful.

RsContext.init(getApplicationContext());
 mRsContext = new RsContext();
 mPipeline = new Pipeline(); 

 config.enableStream(StreamType.INFRARED, 1, 640, 480, StreamFormat.Y8, 30);
 config.enableStream(StreamType.INFRARED, 2, 640, 480, StreamFormat.Y8, 30);

 mPipeline.start(config)

The original source for this code which I adapted is at the link below.

https://support.intelrealsense.com/hc/en-us/community/posts/6640802023699-Record-streams-of-D435i-on-Android

MartyG-RealSense commented 1 month ago

Hi @rivercream09 Do you require further assistance with this case, please? Thanks!

MartyG-RealSense commented 4 weeks ago

Case closed due to no further comments received.