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
Hi, thanks for the great work! I would like to point out a small mistake in MultiHandTracker3D.
In multi_hand_tracker.py, line 884-889, it's transforming 2D coordinates from cropped image back to original image with 2D similarity transform Minv. However, here the z coordinates are still in cropped image and not transformed.
kp_orig_0 = (self._pad1(joints[:,:2]) @ Minv.T)[:,:2]
kp_orig_0 -= pad[::-1]
# Add back the 3D data
kp_orig = joints[:,:]
kp_orig[:,:2] = kp_orig_0[:,:2]
The z coordinates need to be scaled as well, so I did the following:
kp_orig_0 = (self._pad1(joints[:,:2]) @ Minv.T)[:,:2]
kp_orig_0 -= pad[::-1]
scale = np.linalg.norm(Minv[0, :2])
# Add back the 3D data
kp_orig = joints[:,:]
kp_orig[:,:2] = kp_orig_0[:,:2]
# also scale the z coordinates
kp_orig[:, 2] *= scale
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, thanks for the great work! I would like to point out a small mistake in MultiHandTracker3D.
In multi_hand_tracker.py, line 884-889, it's transforming 2D coordinates from cropped image back to original image with 2D similarity transform Minv. However, here the z coordinates are still in cropped image and not transformed.
The z coordinates need to be scaled as well, so I did the following:
Thanks!
The text was updated successfully, but these errors were encountered: