ovl.target_filters.shape_filters.vertical_rectangle_filter module

ovl.target_filters.shape_filters.vertical_rectangle_filter.vertical_rectangle_filter(contour_list, min_area_ratio: Union[float, ovl.helpers.types.RangedNumber.<locals>.Hint] = 0.7)[source]

Receives a list of contours and returns only the ones that are approximately a vertical rectangle :param contour_list: List of Contours to filter :type contour_list: List :param min_area_ratio: minimum ratio between the area of the contours and the bounding shape :return: the contour list filtered.