I need to visualize the camera coordinates and orientations obtained from ZED360 using Python. The camera positions and angles should be accurate relative to each other. I don’t fully understand the JSON format provided by ZED360. Could you help me with that?
Hi @zedev ,
If you did not find the documentation, I send you the page: ZED360 - Stereolabs
Now about the data in the Json file, you should have a dictionnary for each one of your cameras. In this dictionnary, you will find the “pose” which is a 4x4-transform matrix. It corresponds to the transformation between the camera and the first camera in your Json. So the first camera (1) pose should be as identity, the second camera one (2) should contains rotations and translations to transform a point from camera (2) to camera (1). Using this, you are able to project all your data from one camera frame to the first camera (1) frame, and thus to another one of your setup.
I hope it is clear enough, do not hesitate if you have further questions.
Best regards
Thank you. I’m aware of the JSON file and the reference system as you’ve described. However, I’m not entirely sure about the proper formula or code I should use to visualize this data. I’m looking for guidance on how to proceed with accurately visualizing the camera positions and orientations in Python.
Ok, so I recommend you to take a look at our samples on the doc page: Code Samples - Stereolabs and the python github here GitHub - stereolabs/zed-python-api: Python API for the ZED SDK. You will find some codes and visualizations using Fusion which enables the use of multi-camera system.
Best regards
I’ve reviewed and worked with the examples you mentioned, but they don’t fully meet my needs. I specifically want to visualize the camera positions and orientations (like ZED360) in 3D using Python showing where each camera is and the direction it’s facing.
Any guidance or sample code would be greatly appreciated.
Hi @zedev ,
You can also check in this github GitHub - stereolabs/zed-sdk: ⚡️The spatial perception framework for rapidly building smart robots and spaces . There are many cpp and python scripts which are run with visualizer, I hope you will find something close to your needs.
Best regards,