iaa_od.utils.find_contained

Functions

find_all_contained_bboxes(annotation, ...)

Returns a list of all annotations which are considered "contained" within the provided annotation, based on an IoM threshold.

iaa_od.utils.find_contained.find_all_contained_bboxes(annotation, all_annotations, iom_thr)[source]

Returns a list of all annotations which are considered “contained” within the provided annotation, based on an IoM threshold.

Parameters:
  • annotation (AnnotationProtocol) – The annotation to check containment against.

  • all_annotations (list[AnnotationProtocol]) – A list of all annotations to check for containment.

  • iom_thr (float) – The IoM threshold to consider an annotation as “contained” within the provided annotation.

Returns:

A list of annotations that are considered “contained” within the provided annotation.

Return type:

list[AnnotationProtocol]