Improving 3D Reconstruction and Distance Accuracy with ZED X Camera

Of course, here are some additional details.

I am working on detecting a ball on a field with reduced dimensions. The field is 6 meters by 4 meters, and the ball has a diameter of approximately 15 cm. First, I perform ball detection, and then I obtain the distance to the ball from the depth map using zed.retrieve_measure(depth_zed, sl.MEASURE.DEPTH) followed by the function depth_zed.get_value(x, y)[1] on the pixel at the center of the ball. However, this is where the problem arises: the measured distances are not accurate enough (nearly 10% error at 6 meters), and the error becomes even more significant as the ball moves away from the center of the image.

In terms of parameters, I am currently using resolution=sl.RESOLUTION.HD1200 and depth_mode=sl.DEPTH_MODE.NEURAL.