iaa_od.visualisation.show_disagreements

Functions

show_gts_with_disagreements(result, ...[, ...])

A wrapper for the function "show_image_with_disagreements_new" that runs it for all images in a given ground truth set.

show_image_with_disagreements(result, ...[, ...])

Shows which bounding boxes on a given image contribute to agreement (in green) and which don't (in red).

iaa_od.visualisation.show_disagreements.show_gts_with_disagreements(result, filepath, /, *, compare_categories=False, show_image_filename=False, save_path=None, save_extension=None)[source]

A wrapper for the function “show_image_with_disagreements_new” that runs it for all images in a given ground truth set.

Parameters:
  • result (Result) – The Result object containing the ground truths and units.

  • filepath (str) – The filepath where the images are located.

  • compare_categories (bool) – Whether to compare categories for agreement status, or just localisation.

  • show_image_filename (bool) – Whether to show the image filename in the title of the plot. Defaults to False.

  • save_path (Optional[str]) – If provided, the path where the plots will be saved. If None, the plots will be shown interactively. Defaults to None.

  • save_extension (Optional[str]) – If provided, the extension for the saved plots (e.g., ‘.png’, ‘.jpg’). If None, defaults to ‘.png’. Defaults to None.

Return type:

None

iaa_od.visualisation.show_disagreements.show_image_with_disagreements(result, filename, filepath, /, *, compare_categories=False, show_image_filename=False, save_path=None, save_extension=None)[source]

Shows which bounding boxes on a given image contribute to agreement (in green) and which don’t (in red).

Parameters:
  • result (Result) – The Result object containing the ground truths and units.

  • filename (str) – The filename of the image to display.

  • filepath (str) – The filepath where the image is located.

  • compare_categories (bool) – Whether to compare categories for agreement status, or just localisation.

  • show_image_filename (bool) – Whether to show the image filename in the title of the plot. Defaults to False.

  • save_path (Optional[str]) – If provided, the path where the plot will be saved. If None, the plot will be shown interactively. Defaults to None.

  • save_extension (Optional[str]) – If provided, the extension for the saved plot (e.g., ‘png’, ‘jpg’). If None, defaults to ‘png’. Defaults to None.

Return type:

None