How can I accurately draw the center point on the ZED2i's left camera?

How can I accurately draw the center point on the ZED2i’s left camera?
I use open OpenCV.

Hello @thnnathat, welcome to the forums!

You can access the resolution of the camera via something like this: (assuming “zed” is an sl.Camera object)

res = sl.get_resolution(zed.get_init_parameters().camera_resolution)
width = res.width
height = res.height

I can’t walk you through the OpenCV part of drawing the point itself, but with that, you should be able to know the center of the image.

Edit: Python code fits better than C++ code in the Python section.