Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The HAND_MOVE event returns hand joints with a length of 25x3 instead of 25x16. #35

Open
pbernhaohs87 opened this issue Nov 13, 2024 · 0 comments

Comments

@pbernhaohs87
Copy link

@geyang @RogerQi @jansenw95 @evnkm @hannah-y-gao

I am using vuer==0.0.32rc7 to obtain hand poses with the following code (Open-TeleVision):

app = Vuer(host='0.0.0.0', cert=cert_file, key=key_file, queries=dict(grid=False), queue_len=3)
session.upsert @ Hands(fps=fps, stream=True, key="hands", showLeft=False, showRight=False)
app.add_handler("HAND_MOVE")(on_hand_move)
async def on_hand_move(self, event, session, fps=60):
        try:
            self.left_hand_shared[:] = event.value["leftHand"]
            self.right_hand_shared[:] = event.value["rightHand"]
            self.left_landmarks_shared[:] = np.array(event.value["leftLandmarks"]).flatten()
            self.right_landmarks_shared[:] = np.array(event.value["rightLandmarks"]).flatten()
        except: 
            pass

However, the return result of event.value["rightLandmarks"] has a length of 25x3, not 25x16.

I tried running the example but got the same result. Could you help solve this issue? Please let me know how I can retrieve hand joint information with rotation, either through an available example or by pointing out the error in my code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant