def to_norm_coordinates(x, y, total_width, total_height):
    """Reformat absolute coordinates of image of shape shape to normalized ones.

    :param int x: x coordinate of pt in px
    :param int y: y coordinate of pt in px
    :param int total_width: total width of the image the point shall be normalized in
    :param int total_height: total height of the image the point shall be normalized in
    :return:
    """
    return x / total_width, y / total_height