Skip to content

Keypoints skeleton#294

Open
Chandraveersingh1717 wants to merge 6 commits intomlverse:mainfrom
Chandraveersingh1717:keypoints-skeleton
Open

Keypoints skeleton#294
Chandraveersingh1717 wants to merge 6 commits intomlverse:mainfrom
Chandraveersingh1717:keypoints-skeleton

Conversation

@Chandraveersingh1717
Copy link
Contributor

Completes the GSoC Hard task by finishing draw_keypoints() so keypoints can now be connected with thin lines for clearer pose visualization.

Changes

Added a connectivity parameter to define skeleton edges

Draws lines between keypoints using graphics::segments()

Added a 13-point human pose skeleton example

Fixed a dtype comparison issue in draw_segmentation_masks

@Chandraveersingh1717
Copy link
Contributor Author

Can you review this PR
Is there something I need to fix or any reason for which it still haven't gotten reviewed ?

Copy link
Collaborator

@cregouby cregouby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @Chandraveersingh1717,

Thanks for this proposal.
todo Could you please remove from this proposal all file changes unrelated to Keypoint skeleton ?
(i.e. do not stack changes on top of each other, but create new branch from a clean main each time)
todo Please run devtools::check() and devtools::document() before submitting P.R. to the package (here some Rd file changes are missing, and exported function documentation miss). You then have to fix each and every Error, Warning and Note related to your changes.
todo Please do not remove documentation from exported functions. (as it would generate a check error) because documentation is the first-class asset of your contribution.
suggestion Please avoid to lint the code you are not editing. It would create a mess in other people contribution review.
suggestion Please remove generated lines of "=" sign in the code base.

I'll be able to make a cleaner review after that
Thanks

Copy link
Collaborator

@cregouby cregouby Mar 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise Fully annotated human pose is very nice idea, thanks
suggestion please choose a more contrastive color with the image for accessibility.
todo please review the points coordinate so that result is less modern-art human pose :

image

- Implement drawing lines between keypoints using connectivity matrix
- Add graphics::segments() to draw skeleton connections
- Update documentation with connectivity parameter and examples
- Add test for connectivity feature
- Add keypoint-skeleton.R example for human pose visualization
Add connectivity parameter to draw lines between keypoints with human pose example
Prevents 2D tensor from collapsing to 1D when indexing with single element.
Fixes convnext_detection model test failure.
@Chandraveersingh1717
Copy link
Contributor Author

Hi @cregouby, thanks for the detailed feedback.
I reworked the keypoint skeleton example to be more anatomically structured and high contrast, and I also checked the coordinate handling in draw_keypoints().

I also noticed my branch still contains unrelated/generated files and some non-keypoint doc churn, which can make review noisy. I will clean the PR to keep only keypoint-related changes, regenerate docs only for touched exports, and rerun checks before requesting review again.

Thanks again for the guidance — I’ll push a cleaned-up revision shortly.

@Chandraveersingh1717
Copy link
Contributor Author

image

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

Successfully merging this pull request may close these issues.

2 participants