discopat.manual_annotations.operations

Functions

get_bounding_box(point_list)

keypoint_to_box(keypoint, w_padding, h_padding)

turn_keypoints_into_boxes(frame, w_padding, ...)

Turn all keypoint annotations of a frame into boxes.

discopat.manual_annotations.operations.get_bounding_box(point_list)[source]
Parameters:

point_list (list[tuple[float, float]])

Return type:

tuple[float, float, float, float]

discopat.manual_annotations.operations.keypoint_to_box(keypoint, w_padding, h_padding)[source]
Parameters:
  • keypoint (Keypoint)

  • w_padding (float)

  • h_padding (float)

Return type:

Box

discopat.manual_annotations.operations.turn_keypoints_into_boxes(frame, w_padding, h_padding)[source]

Turn all keypoint annotations of a frame into boxes.

Parameters:
  • frame (Frame)

  • w_padding (float)

  • h_padding (float)

Return type:

None