neodroidvision.utilities.visualisation.bounding_box_visualisation.draw_keypoints_on_image

neodroidvision.utilities.visualisation.bounding_box_visualisation.draw_keypoints_on_image(image, keypoints, color: Optional[ColorEnum] = None, radius: Union[int, float] = 2, use_normalized_coordinates: bool = True)[source]

Draws keypoints on an image.

Args: image: a PIL.Image object. keypoints: a numpy array with shape [num_keypoints, 2]. color: color to draw the keypoints with. radius: keypoint radius. Default value is 2. use_normalized_coordinates: if True (default), treat keypoint values as relative to the image. Otherwise treat them as absolute.