def crop_image(img, ymin, ymax, xmin, xmax):
    """Crop image with given size

    Args:
        img: image as numpy array
        ymin: start cropping position along height in pixels
        ymax: end cropping position along height in pixels
        xmin: end cropping position along width in pixels
        xmax: end cropping position along width in pixels

    Returns:
        Image as numpy array
    """
    return img[int(ymin) : int(ymax), int(xmin) : int(xmax), :]