nicetoolbox.detectors.feature_detectors.kinematics.utils.create_video_evolving_linegraphs¶
- nicetoolbox.detectors.feature_detectors.kinematics.utils.create_video_evolving_linegraphs(frames_data_list, data, categories, global_min, global_max, output_folder, file_name=None, video_fps=30.0)[source]¶
Creates a video with evolving line graphs for each frame.
This function takes a list of frames and data for two people, and creates a video where each frame is combined with line graphs of the data up to that frame. The line graphs are color-coded based on categories.
- Parameters:
frames_data_list (list of str) – The list of paths to the frames to be included in the video.
data (list of numpy.ndarray) – The data to be plotted. Each array represents data for a person.
categories (list of str) – The categories for the data. Each category corresponds to a line on the graph.
global_min (float) – The minimum value across all data. Used to set the y-axis limit.
global_max (float) – The maximum value across all data. Used to set the y-axis limit.
output_folder (str) – The path to the folder where the video will be saved.
file_name (str, optional) – The name of the output video file. If not provided, defaults to ‘movement_score_on_video’.
video_fps (float, optional) – The frames per second of the output video. Defaults to 30.0.
- Returns:
None