import copy


def flip(info):
    """
    Flip horizontally a heatmap info

    :param info: dict, heatmaps info
    :return: dict, heatmaps info (copy)
    """
    info = copy.deepcopy(info)

    for cwh in info['cwh_list']:
        c_x, c_y = cwh['center']
        cwh['center'] = (info['img_width'] - c_x, c_y)

    return info