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

Refactor mediapipe process tracked objects #42

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

philipqueen
Copy link
Collaborator

Heavily simplify the logic in the process_tracked_objects function in the Mediapipe Holistic recorder.

The prior iteration used some complicated numerical indexing that was hard for me to follow and seemed very difficult to maintain (or even verify for correctness). So I wrote a few more tests and then refactored the function to be easier to understand. Now it makes an array for each type of landmark (pose, hands, face) and then concatenates the arrays in the proper order. I also added a comment to not change that order. The prior version was dependent on receiving the tracked objects in the correct order.

@philipqueen philipqueen requested a review from aaroncherian July 24, 2024 04:57
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