You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is, the second argument (center) is a tuple containing the center points in vertical or y-direction (height/2) and in horizontal or x-direction (width/2), in this particular order.
Now, please take a look inside the function. You can see that the center point for the y-direction (center[0]) is in the first row, whereas the center point for the x-direction (center[1]) appears in the second row of the matrix:
Hi,
first off, thank you very much for writing this program and making it public.
Here is my issue:
The function
cameraMatrix
from theworld
module is called like this:That is, the second argument (
center
) is a tuple containing the center points in vertical or y-direction (height/2
) and in horizontal or x-direction (width/2
), in this particular order.Now, please take a look inside the function. You can see that the center point for the y-direction (
center[0]
) is in the first row, whereas the center point for the x-direction (center[1]
) appears in the second row of the matrix:Compare this to the camera matrix defined in this Open CV tutorial:
with cx and cy being the respective center points.
It seems like the center points for the x and y directions are swapped. Or am I confusing something here?
The text was updated successfully, but these errors were encountered: