visualize.py

ct_assist.utils.visualize.visualize(img_path: str, args: List[Tuple[numpy.ndarray, float, float]], show=True) → PIL.Image.Image[source]

Visualizes extract_reference’s output.

Parameters
  • img_path (str) – Path to image

  • args (List[Tuple[np.ndarray, float, float]]) – Ouput from extract_reference

  • show (bool, optional) – If the image should be shown directly, defaults to True

Returns

Image with heads and feet drawn on it

Return type

Image.Image