def upscale_pts(pts, size, up_size):
    """
		upscale points to original image size to be used for cropping
		"""
    h, w = size
    h_up, w_up = up_size

    w_fact = w_up / w
    h_fact = h_up / h

    up_x1 = pts[0] * w_fact
    up_x2 = pts[2] * w_fact

    up_y1 = pts[1] * h_fact
    up_y2 = pts[3] * h_fact

    return [up_x1, up_y1, up_x2, up_y2]