def get_poly_area(poly1):
    """ Calcualte the number of pixels the polygon covered.

    Parameters
    -------
    poly1 : Polygon
        contour with shapely polygon format

    Returns
    -------
    area_val : int
        number of pixels inside the contour

    """

    area_val = poly1.area

    return area_val