import random


def get_random_crop_coords(height, width, crop_height, crop_width):
    """
    get coordinates for cropping

    :param height: image height, int
    :param width: image width, int
    :param crop_height: crop height, int
    :param crop_width: crop width, int
    :return: xy coordinates
    """
    y1 = random.randint(0, height - crop_height)
    y2 = y1 + crop_height
    x1 = random.randint(0, width - crop_width)
    x2 = x1 + crop_width
    return x1, y1, x2, y2