Shortcuts

mmocr.utils.is_poly_inside_rect

mmocr.utils.is_poly_inside_rect(poly, rect)[源代码]

Check if the polygon is inside the target region. :param poly: Polygon in shape (N, ). :type poly: ArrayLike :param rect: Target region [x1, y1, x2, y2]. :type rect: ndarray

返回

Whether the polygon is inside the cropping region.

返回类型

bool

参数