any_keypts_visible

hybrid_learning.datasets.custom.coco.keypoints_processing.any_keypts_visible(ann, keypoint_idxs=None)[source]

Whether any of the given keypoints are marked as visible in the given annotation.

Parameters
  • ann (Dict[str, Any]) – coco annotation to check

  • keypoint_idxs (Optional[Sequence[int]]) – keypoint constraints: starting indices of keypoints in the keypoint list of the annotation that must be marked as visible (cf. to_keypoint_idxs()); if None or empty, True is returned for the annotation to be regarded valid

Returns

whether all specified keypoints are marked as visible in the annotation

Return type

bool