def crop(image, startX, startY, endX, endY):
    """
    Crop an image
    :param image: Image to be cropped
    :param startX: Starting X coord
    :param startY: Starting Y coord
    :param endX: Ending X coord
    :param endY: Ending Y coord
    :return: Cropped image
    """

    cropped = image[startY:endY, startX:endX]

    return cropped