def crop(image, top, left, height, width):

    """
    This method crops the image according to parameters
    :param image: image to process
    :param top: top coordinate of the cropped image
    :param left: left coordinate of the cropped image
    :param height: height of the cropped image
    :param width: width of the cropped image
    :return: cropped image if succeeded, or None if requested crop exceeds the boundaries of the current image
    """

    cur_shape = image.shape
    if top + height > cur_shape[0] or left + width > cur_shape[1]:
        print("Requested crop exceeds the boundaries of the current image")
        return

    processed_image = image[top:top + height, left: left + width, ...]
    return processed_image