Can't parse tvecs from pose estimation using SolvePnP

thanks for the link. Will comply.

#  order of points: top_left, bottom_left, middle, top_right, bottom_right in mm
img_points = np.array([
 [ 77.372375,  65.8471  ],
 [ 72.73076 , 227.59946 ],
 [151.1125  , 142.49625 ],
 [262.51657 ,  60.58985 ],
 [261.18253 , 230.10602 ]])
#  order of points: top_left, bottom_left, middle, top_right, bottom_right in mm
obj_points_in_millimeters = np.array([
 [-25., -22.,   0.],
 [-25.,  22.,   0.],
 [  0.,   0., -15.],
 [ 25., -22.,   0.],
 [ 25.,  22.,   0.]])
camera_matrix = np.array([
[627.44372826,   0.        , 354.49962245],
[  0.        , 625.94738517, 235.52154125],
[  0.        ,   0.        ,   1.        ]])

distortion_matrix = np.array([-0.00227971, 0.0592749, 0.00193853, -0.00431801, -0.05491578])

img of markers at 300 mm.
Screen Shot 2022-09-29 at 12.38.22 PM

I’m expecting the tvec z value (or the sqrt(x2 + y2 + z**2)) to be close to 300, but instead getting:

tvec = np.array([
 [-48.70485676],
 [-23.35683082],
 [165.52803911]])