Custom object detection - use world reference frame

I am using the custom object features from the zed sdk camera, using this script from the zed examples.

After some tests, it looks like the object coordinates are in the CAMERA reference frame, but I would like to get them in the WORLD reference frame because my camera is moving. How is it possible to use this reference frame, so that non-moving objects get the same coordinates through time?

Hello and thank you for reaching out to us,

You can change the RuntimeParameters to achieve that, and especially the measure3D_reference_frame value whose default is CAMERA.

Documentation => RuntimeParameters Class Reference | API Reference | Stereolabs

Antoine