nicetoolbox.detectors.feature_detectors.leaning.utils.visualize_lean_in_out_per_person¶
- nicetoolbox.detectors.feature_detectors.leaning.utils.visualize_lean_in_out_per_person(hip_angle, person_list, output_folder, camera_names=None)[source]¶
Visualize the leaning angle between midpoint of shoulders, hips, and knees for each person.
- Parameters:
hip_angle (numpy.ndarray) – A 4D numpy array with shape (num_subjects, num_cameras, num_frames, 2) representing the leaning angles (axis angle and derivative) for each subject, camera, and frame.
person_list (list) – A list of strings representing the names of the persons in frame.
output_folder (str) – The path to the output folder where the plots will be saved.
camera_names (list, optional) – A list of strings representing the names of the cameras. Defaults to None.
- Returns:
None