Skip to content

Conversation

@philipqueen
Copy link
Collaborator

Generalizes the process_folder_of_videos function to process_list_of_videos, while maintaining the original function which now gets the list of videos and calls the new process_list_of_videos. This approach is more flexible, and simply extends the existing API.

This is anticipation of using skellytracker's charuco tracker in Freemocap's anipose pipeline. Anipose stores the list of video paths, not the original folder path.

@philipqueen philipqueen requested a review from aaroncherian June 2, 2025 18:58
@philipqueen philipqueen self-assigned this Jun 2, 2025
Copy link
Contributor

@aaroncherian aaroncherian left a comment

Choose a reason for hiding this comment

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

Tested this using the charuco tracker and the mediapipe tracker and both worked!

if output_folder_path is None:
output_folder_path = (
synchronized_video_path.parent / "output_data" / "raw_data" / file_name
video_paths[0].parent.parent / "output_data" / "raw_data" / file_name
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a big deal at all, but if you wanted you could do

video_paths[0].parents[1]

instead of the .parent.parent

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cool, didn't know that!

@philipqueen philipqueen merged commit a765ae7 into main Jun 2, 2025
2 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.

3 participants