find_video_files_for_views

lightning_pose.utils.io.find_video_files_for_views(video_dir: str, view_names: list[str]) list[list[Path]][source]

Search inside a folder to find a list of videos from different sessions and views, split them up and return a list of lists like [[sess0_view0.mp4, sess0_view1.mp4, …], [sess1_view0.mp4, sess1_view1.mp4, …], …]

Parameters:
  • video_dir – Directory containing video files

  • view_names – List of view names to find videos for

Returns:

List for each session, each containing a sub-list with videos for each view for that session