def normalized_points(points, top_left, ll_height, ll_width, iminfo):
    """
    Takes a list of points (tuples of x, y coordinates) and an output image size
    and returns a transformed list of points that fit in the output image.
    """
    return [((x - top_left[0]) * iminfo.width / ll_width,
            (y - top_left[1]) * iminfo.height / ll_height)
            for (x, y) in points]