pose_format.utils.openpose_test module
Classes:
|
Test cases for loading OpenPose data |
|
Testcases for loading OpenPose data from a directory |
|
Test cases for OpenPose components |
- class pose_format.utils.openpose_test.TestLoadOpenpose(methodName='runTest')[source]
Bases:
TestCaseTest cases for loading OpenPose data
Methods:
Tests if loaded data has expected shape
Tests if data shape from
load_openposewith missing frames.Tests if correct number of people are extracted
Tests
load_openpose's output shape with a fixed number of framesTests
load_openpose's output shape with fixed frames & missing framesTest if loaded data is type Pose
- test_load_openpose_data_shape_missing_frames()[source]
Tests if data shape from
load_openposewith missing frames.
- test_load_openpose_extracts_correct_number_of_people()[source]
Tests if correct number of people are extracted
- test_load_openpose_fixed_num_frames()[source]
Tests
load_openpose’s output shape with a fixed number of frames
- class pose_format.utils.openpose_test.TestLoadOpenposeDirectory(methodName='runTest')[source]
Bases:
TestCaseTestcases for loading OpenPose data from a directory
Methods:
Tests frame ID extraction from a filename with no prefix.
Tests if frame ID works correctly for a filename with non-zero ID
Tests frame ID extraction from a filename with several digits in ID
Test if frame ID extraction works correctly for a filename with ID 0.
Tests shape of data returned by
load_openpose_directoryTest the data shape from load_openpose_directory when adding empty keys.
Test the data shape from load_openpose_directory with missing frames.
Test the data shape from load_openpose_directory without file prefix.
test_load_openpose_directory_extracts_correct_number_of_people()Test if the correct number of people are extracted by load_openpose_directory.
Tests if loading from a directory returns an instance of Pose
- test_get_frame_id_nonzero()[source]
Tests if frame ID works correctly for a filename with non-zero ID
- test_get_frame_id_several_digits()[source]
Tests frame ID extraction from a filename with several digits in ID
- test_get_frame_id_zero()[source]
Test if frame ID extraction works correctly for a filename with ID 0.
- test_load_openpose_directory_data_shape()[source]
Tests shape of data returned by
load_openpose_directory
- test_load_openpose_directory_data_shape_add_empty_keys()[source]
Test the data shape from load_openpose_directory when adding empty keys.
- test_load_openpose_directory_data_shape_missing_frames()[source]
Test the data shape from load_openpose_directory with missing frames.
- test_load_openpose_directory_data_shape_no_file_prefix()[source]
Test the data shape from load_openpose_directory without file prefix.
- class pose_format.utils.openpose_test.TestOpenposeComponents(methodName='runTest')[source]
Bases:
TestCaseTest cases for OpenPose components
Methods:
Tests the names in OpenPose components
Tests if total points in OpenPose components match expected value
Tests number of points for the 'face_keypoints_2d' component matches expected
Tests if number of points for the 'hand_left_keypoints_2d' component matches expected
Tests if the number of points for the 'hand_right_keypoints_2d' component matches expected value
Tests number of points for the 'pose_keypoints_2d' component match expected
- test_openpose_components_total_points()[source]
Tests if total points in OpenPose components match expected value
- test_openpose_num_points_per_component_face()[source]
Tests number of points for the ‘face_keypoints_2d’ component matches expected
- test_openpose_num_points_per_component_hand_left()[source]
Tests if number of points for the ‘hand_left_keypoints_2d’ component matches expected