Skip to content

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.

2 participants