I tried to follow the example to draw the axis on a detected pattern.
If the axis is small it is perfectly oriented, but if I increase the size, all goes wrong.
There must be a reason for this, does someone knows why?
This is the code, where you can see the units of the axis, with 0.03 it works fine, with 3 it gets all wrong.
img, img_sub, corners, corners_subpixel, = Find_Pattern(frame, cameraIntrinsicsPath, square_size, width,height)
rvec, rtec = Calc_rvec_tvec(corners, cameraIntrinsicsPath, square_size, width, height)
axis = np.float32([[0.03, 0, 0], [0, 0.03, 0], [0, 0, -0.03]]).reshape(-1, 3)
axis_wrong = np.float32([[3, 0, 0], [0, 3, 0], [0, 0, -3]]).reshape(-1, 3)
mtx_loaded, dist_loaded = load_coefficients(cameraIntrinsicsPath)
imgpts, jac = cv2.projectPoints(axis, rvec, rtec, mtx_loaded, dist_loaded)
img = draw(img, corners, imgpts)
imgpts, jac = cv2.projectPoints(axis_wrong, rvec, rtec, mtx_loaded, dist_loaded)
img = draw(img, corners, imgpts)
cv2.imshow("Draw_Axisaa", img)