Assigning global coordinates to detected objects

Hello everyone!

I’m working on a project in which a moving ZED 2 detects apples.

I know the initial position of the camera and my final goal is to obtain the georeferenced position of the detected apples.

How can assign this initial position to the camera?
How can I, then, print object.position in georeferenced coordinates?

Thanks in advance for your answers!

I recommend you read our detailed documentation about Global Localization