Undistorted images

Hi,

I am now using two ZED X one monocular cameras(Global Shutte), have calibrated the stereo rig using the programm you provided under Stereo Calibration, and successfully set up the virtual stereo camera within the Software ZED_Media_Server.

For most of the time, the data streaming works fine. However, sometimes the recorded images are severely distorted. For example, the light pole or the fast moving autos.


Can you please clarify why this distortion happened and how can I prevent this effect during the data recording in the future?

Thanks.

Hello @syc, welcome on StereoLabs forum !

The artifacts you can notice are most likely due to compression from the streaming protocol used to shared ZED X One Stereo data.
We would recommend using the recently added shared memory protocol, which removes these artefacts and latency of the ZED X One streaming.
To enable this, please be sure to be using the ZED SDK from v4.2.3 at least, and set the IP address 127.0.0.1 in the subscriber application receiving the ZED X One data. In this way, the SDK will use a shared memory protocol instead of UDP to retrieve the camera streams.

Best regards,

Hi @hbeaumont ,

thanks for your reply. Do you have some sample code to demonstrate how does the shared memory protocol work? And how can I check whether UDP or shared memory protocol is been used to retrieve the camera streams.

Hi @syc ,

To compare network vs shared memory streaming, you can use this sample: zed-sdk/camera streaming at master · stereolabs/zed-sdk · GitHub
And run it as such:

./ZED_Streaming_Receiver <ip:port>

Setting 127.0.0.1 as the ip will automatically switch to share memory, and the log: “Using SHM - Boost” will tell you that you are indeed using shared memory

Best regards,