keypoints_processing
Description
Util functions to process, transform, and evaluate MS COCO keypoint information.
The main functionality is:
annotation transformation:
pad_and_scale_annotation()
,annotations_to_mask()
estimation of the size (in pixels) of a person in an image from an annotation:
annotation_to_sizes()
,annotation_to_tot_height()
some functions that may serve as filtering conditions:
person_has_rel_size()
,all_keypts_visible()
,any_keypts_visible()
Attributes
The standard list of keypoint names for MS COCO. |
Functions
|
Whether all given keypoints are marked as visible in the given annotation. |
|
Estimate the body size of a person in an image in pixels from skeletal keypoints and linear formulas given by |
|
Wrapper around |
|
Create a heatmap marking the centroids of the linked keypoints from the |
|
Create a mask of the linked keypoints from the |
|
Whether any of the given keypoints are marked as visible in the given annotation. |
|
Given a MS COCO style annotation, apply first padding and/or then scaling to its coordinates. |
|
Check whether the relative size of the person described by annotation |
|
Return the start indices for the given keypoints within an annotations |