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

Resolves gh-19 and gh-21: Normalizes the keypoint output format #22

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

colinbdclark
Copy link
Contributor

This PR ensures that the output from MovementOSC is normalized and consistent regardless of which model is used. This includes:

  • Normalizing x and y axis values to between 0.0 and 1.0, and the z axies to between -1.0 and 1.0 so that output is video resolution-indepedent
  • Always including z values (which will be set to NaN if unsupported by the model)
  • Always outputs all 33 supported keypoints (unsupported keypoints will be set to NaN)
  • Arranging the keypoint order so that the COCO keypoints are first, followed by the BlazePose keypoints

@colinbdclark colinbdclark merged commit 71ec8ea into lichen-community-systems:main Nov 19, 2024
4 checks passed
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.

1 participant