Not able to get right camera images

I am using Zed 2i with the 4.1 sdk in cuda 12.1 on ubuntu 20. When I use the Zed explorer tool, I am able to see right and left images but when I try to capture through code using zed.retrieve_image(mat, sl.VIEW.RIGHT) I keep getting the left image instead of the right. Even when capturing unrectified left and right images, I only receive the left rectified image. What’s going on? How do I fix this?

Hello Rajashree,

Thank you for reaching us. Could you please send us a snippet of the code you use, so we can reproduce your issue ?

Also, do you really need this SDK version in particular ? I strongly recommend you to use the latest 5.0.0 or at least 4.2 to have the latest updates.

Best regards,

Stereolabs Support