ovl.target_filters.shape_filters.horizontal_rectangle_filter module

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

Receives a list of contours and returns only those that are approximately a horizontal rectangle

Parameters:contour_list – List of Contours to filter

:param min_area_ratio :return: the contour list filtered.