UFO.visualize_detection_results

giant.ufo.ufo_class:

UFO.visualize_detection_results(interactive=True, save_frames=False, frame_output='./{}.png')[source]

This method visualizes detection results, overlaying them on the images themselves.

The detections are filtered based off of quality code using visual_inspection_quality_code_minimum.

They are then plotted on the images. The plots can either be saved to file (if save_frames is set to True), displayed interactively (if interactive is set to True) or displayed all at once (if save_frames and frame_output are both set to False). Note that this last option can make a lot of figures, therefore we encourage you to use the interactive option instead.

For more details refer to the show_detections() function.

Parameters:
  • interactive (bool) – Generate an interactive GUI for flipping through the frames

  • save_frames (bool) – Save all frames to a file and don’t display them on the screen

  • frame_output (str) – The location to save all of the frames. Should include a format specifier {} which will be replaced with the name of the image.