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

visualize hand skeleton #22

Open
qwer904 opened this issue Apr 8, 2024 · 1 comment
Open

visualize hand skeleton #22

qwer904 opened this issue Apr 8, 2024 · 1 comment

Comments

@qwer904
Copy link

qwer904 commented Apr 8, 2024

Hello, I want to visualize the hand skeleton in the output picture, how should I do it? Are you using your vis_keypoints(img, kps, kps_gt, bbox, score, skeleton, filename, score_thr=0.4, line_width=3, circle_rad = 3, save_path=None) function?
If so, how should the parameters img, kps, kps_gt, bbox, score, and skeleton be set?

@ChanglongJiangGit
Copy link
Owner

Sorry to keep you waiting.

Yes, if you want to visualize, just use this function. This is copied from the baseline (of InterHand2.6M) code.

Each parameter represents:
img: input single image (before cropping);
kps: your predicted coordinates of hand joints;
kps_gt: GT coordinates of hand joints;
bbox: GT bounding box;
score: the joint_valid parameter which represents whether this joint is valid for visualization;
skeleton: the pre-defined hand skeleton which can directly loaded from the given file.

If you have any other questions, feel free to ask me!

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

2 participants