Conversion of GameObject's 3D position to 2D for Visualization on Captured Image

Give us as much detail as possible regarding the issue you're experiencing:

Unity Editor version: 2022.3.12f1
ML2 OS version: 1.5.0
Unity SDK version: 1.12.1
Host OS: Windows

I have a game object for which I have its 3D (Vector3) position. I want to convert this position to its corresponding 2D representation that I can draw (using OpenCV utilities) on the captured image from Magic Leap's MLCamera APIs. In the camera API I found the CameraUtilities file that helps convert a 2D point from captured image to its 3D position in the world using camera extrinsics but I did not find anything the other way round which I am trying to do.

Since the process of projecting a 3D point to the 2D image is not Magic Leap Specific we only provide one example that shows developers how they can undistort and project a point using the intrinsic and extrinsic parameters from the MLCamera API.

That said if you run into any specific problems when performing the conversion please let us know and we will be happy to help.