color = {
    "12cadpa": (1810, 21),
    "1800": (158, 958),
    "arrange_order_options": (1652, 23),
    "arrange_order_options_scene": (369, 199),
    "choose_agent/battle_confirm": ((1476, 991), (1591, 991)),
    "choose_agent/clear": (685, 996),
    "choose_agent/fast_select": ((1296, 25), (1592, 98)),
    "choose_agent/support_status": (1038, 41),
    "clue": (1740, 855),
    "clue/daily": (526, 623),
    "clue/filter_all": (1297, 99),
    "clue/give_away": (25, 18),
    "clue/receive": (1295, 15),
    "clue/summary": (59, 153),
    "confirm": (0, 683),
    "control_central_assistants": (39, 560),
    "depot": (0, 955),
    "double_confirm/exit": (940, 464),
    "double_confirm/friend": (978, 465),
    "double_confirm/give_up": (574, 716),
    "double_confirm/infrastructure": (1077, 435),
    "double_confirm/main": (835, 683),
    "double_confirm/network": (708, 435),
    "double_confirm/product_plan": (921, 461),
    "double_confirm/recruit": (981, 464),
    "double_confirm/sss": (901, 465),
    "double_confirm/sss_abandon_drop": (901, 463),
    "double_confirm/voice": (745, 435),
    "drone": (274, 437),
    "factory_collect": (1542, 886),
    "fight/collection": (1088, 25),
    "fight/collection_on": (1084, 22),
    "fight/refresh": (1639, 22),
    "hypergryph": (0, 961),
    "infra_overview": (54, 135),
    "infra_overview_in": (64, 705),
    "infra_overview_top_right": (1820, 0),
    "infra_todo": (13, 1013),
    "loading2": (620, 247),
    "loading7": (106, 635),
    "login_account": (622, 703),
    "login_awake": (888, 743),
    "login_bilibili": (870, 282),
    "login_captcha": (651, 814),
    "login_connecting": (760, 881),
    "login_loading": (920, 388),
    "login_logo": (601, 332),
    "mail": (307, 39),
    "mission_trainee_on": (690, 17),
    "nav_bar": (655, 0),
    "nav_button": (26, 20),
    "navigation/collection/AP-1": (203, 821),
    "navigation/collection/CA-1": (203, 821),
    "navigation/collection/CE-1": (243, 822),
    "navigation/collection/LS-1": (240, 822),
    "navigation/collection/PR-A-1": (550, 629),
    "navigation/collection/PR-B-1": (496, 629),
    "navigation/collection/PR-C-1": (487, 586),
    "navigation/collection/PR-D-1": (516, 619),
    "navigation/collection/SK-1": (204, 821),
    "navigation/ope_hard_small": (819, 937),
    "navigation/ope_normal_small": (494, 930),
    "navigation/record_restoration": (274, 970),
    "next_step": (915, 811),
    "notice": (155, 132),
    "ope_agency_lock": [(1565, 856), (1565, 875)],
    "ope_elimi_agency_confirm": (1554, 941),
    "ope_elimi_agency_panel": (1409, 612),
    "ope_eliminate": (1332, 938),
    "ope_recover_originite_on": (1514, 124),
    "ope_recover_potion_on": (1046, 127),
    "open_recruitment": (192, 143),
    "operator/filter_hide": (1831, 48),
    "operator/filter_show": (1823, 46),
    "operator/trust": (38, 600),
    "order_label": (404, 137),
    "pull_once": (1260, 950),
    "read_and_agree": (1115, 767),
    "recruiting_instructions": (343, 179),
    "riic/assistants_title": (904, 211),
    "riic/exp": (1385, 239),
    "riic/manufacture": (1328, 126),
    "riic/none": ((620, 289), (259, 736), (500, 736), (740, 736), (980, 736)),
    "riic/report_title": (1712, 25),
    "room_detail": (1291, 33),
    "sanity_charge": (1111, 382),
    "sanity_charge_dialog": (570, 529),
    "shop/cart": (1252, 842),
    "shop/commendation": (24, 224),
    "shop/credit": (1646, 120),
    "shop/recommend": (0, 120),
    "shop/recommend_off": (0, 130),
    "shop/spent_credit": (332, 264),
    "shop/token": (1097, 120),
    "shop/trade_token_button": (15, 998),
    "shop/trade_token_dialog": (717, 694),
    "sign_in/banner": (205, 700),
    "sign_in/moon_festival/moon_cake": (1216, 503),
    "skip": (1803, 32),
    "sss/accomplished": (634, 381),
    "sss/action": (1641, 967),
    "sss/action_ex": (1641, 966),
    "sss/add_agent": (1805, 684),
    "sss/check_ex": (1641, 967),
    "sss/deploy": (1645, 971),
    "sss/deploy_ex": (1640, 969),
    "sss/device": (1644, 969),
    "sss/drop": (779, 186),
    "sss/drop/无需增调干员": (1585, 464),
    "sss/drop_check": (1669, 864),
    "sss/drop_EC": (48, 182),
    "sss/no_drop_check": (1669, 865),
    "sss/ec": (1644, 969),
    "sss/finish_check": (745, 462),
    "sss/loading": (1642, 517),
    "sss/loading_ex": (1647, 524),
    "sss/main": (1224, 60),
    "sss/redeploy": (1644, 970),
    "sss/redeploy_ex": (1642, 968),
    "sss/settlement_commission": (1593, 31),
    "sss/squad": (1645, 970),
    "sss/start": (1547, 968),
    "sss/start_ex": (1545, 966),
    "sss/start_directly": (1642, 610),
    "sss/switch_to_ex": (1255, 942),
    "sss/switch_to_normal": (1255, 934),
    "terminal_main": (1658, 734),
}

template_matching = {
    "arrange_check_in": ((30, 300), (175, 700)),
    "arrange_check_in_on": ((30, 300), (175, 700)),
    "arrange_confirm": (755, 903),
    "biography": (768, 934),
    "business_card": (55, 165),
    "collection": (1005, 943),
    "collection_small": (1053, 982),
    "connecting": (1087, 978),
    "credit_visiting": (78, 220),
    "choose_agent/battle_empty": (92, 296),
    "choose_agent/battle_filter": (1650, 54),
    "choose_agent/battle_filter_close": (1836, 19),
    "choose_agent/profession/ALL": (1828, 46),
    "choose_agent/profession/choose_arrow": ((1850, 125), (1920, 1080)),
    "choose_agent/profession/CASTER": (1825, 630),
    "choose_agent/profession/MEDIC": (1832, 750),
    "choose_agent/profession/PIONEER": (1831, 160),
    "choose_agent/profession/SNIPER": (1829, 505),
    "choose_agent/profession/SPECIAL": (1835, 994),
    "choose_agent/profession/SUPPORT": (1828, 872),
    "choose_agent/profession/TANK": (1832, 394),
    "choose_agent/profession/WARRIOR": (1825, 271),
    "choose_agent/support_skill_be_choosen": None,
    "choose_product_options": (1174, 23),
    "episode": (535, 937),
    "factory_accelerate": (1800, 775),
    "fight/attack": (15, 270),
    "fight/defend": (27, 406),
    "fight/gear": (82, 45),
    "fight/use": (1037, 845),
    "friend_list": (61, 306),
    "icon_notification_black": ((1436, 129), (1920, 221)),
    "infra_complete/信用": None,
    "infra_complete/先锋双芯片": None,
    "infra_complete/医疗双芯片": None,
    "infra_complete/合成玉": None,
    "infra_complete/术师双芯片": None,
    "infra_complete/源石碎片": None,
    "infra_complete/特种双芯片": None,
    "infra_complete/狙击双芯片": None,
    "infra_complete/经验": None,
    "infra_complete/赤金": None,
    "infra_complete/辅助双芯片": None,
    "infra_complete/近卫双芯片": None,
    "infra_complete/重装双芯片": None,
    "infra_complete/龙门币": None,
    "infra_no_operator": None,
    "loading": (736, 333),
    "loading2": (620, 247),
    "loading3": (1681, 1000),
    "loading4": (828, 429),
    "main_theme": (283, 945),
    "main_theme_small": (321, 973),
    "materiel_ico": (892, 61),
    "mission_daily_on": ((685, 15), (1910, 100)),
    "mission_weekly_on": ((685, 15), (1910, 100)),
    "navigation/activity/banner": (1468, 855),
    "navigation/activity/entry": (1256, 829),
    "navigation/collection/AP_entry": ((0, 170), (1920, 870)),
    "navigation/collection/CA_entry": ((0, 170), (1920, 870)),
    "navigation/collection/CE_entry": ((0, 170), (1920, 870)),
    "navigation/collection/LS_entry": ((0, 170), (1920, 870)),
    "navigation/collection/PR-A_entry": ((0, 170), (1920, 870)),
    "navigation/collection/PR-B_entry": ((0, 170), (1920, 870)),
    "navigation/collection/PR-C_entry": ((0, 170), (1920, 870)),
    "navigation/collection/PR-D_entry": ((0, 170), (1920, 870)),
    "navigation/collection/SK_entry": ((0, 170), (1920, 870)),
    "navigation/episode": (1567, 949),
    "navigation/ope_difficulty": [(0, 920), (120, 1080)],
    "navigation/ope_hard": (172, 950),
    "navigation/ope_hard_small": (819, 937),
    "navigation/ope_normal": (172, 950),
    "navigation/ope_normal_small": (494, 930),
    "ope_agency_fail": (809, 959),
    "ope_agency_going": ((508, 941), (715, 1021)),
    "ope_failed": (183, 465),
    "ope_finish": (87, 265),
    "ope_plan": (1278, 24),
    "ope_select_start": ((1579, 701), (1731, 921)),
    "ope_select_start_empty": ((0, 0), (400, 400)),
    "order_ready": (500, 664),
    "order_switching_notice": (604, 900),
    "product/先锋双芯片": ((1635, 445), (1730, 520)),
    "product/医疗双芯片": ((1635, 445), (1730, 520)),
    "product/术师双芯片": ((1635, 445), (1730, 520)),
    "product/源石碎片": ((1635, 445), (1730, 520)),
    "product/特种双芯片": ((1635, 445), (1730, 520)),
    "product/狙击双芯片": ((1635, 445), (1730, 520)),
    "product/经验": ((1635, 445), (1730, 520)),
    "product/赤金": ((1635, 445), (1730, 520)),
    "product/辅助双芯片": ((1635, 445), (1730, 520)),
    "product/近卫双芯片": ((1635, 445), (1730, 520)),
    "product/重装双芯片": ((1635, 445), (1730, 520)),
    "recruit/agent_token": ((1740, 765), (1920, 805)),
    "recruit/agent_token_first": ((1700, 760), (1920, 810)),
    "recruit/available_level": (1294, 234),
    "recruit/begin_recruit": None,
    "recruit/career_needs": (350, 593),
    "recruit/job_requirements": None,
    "recruit/lmb": (945, 27),
    "recruit/recruit_done": None,
    "recruit/recruit_lock": None,
    "recruit/refresh": (1366, 560),
    "recruit/refresh_comfirm": (1237, 714),
    "recruit/riic_res/CASTER": ((750, 730), (1920, 860)),
    "recruit/riic_res/MEDIC": ((750, 730), (1920, 860)),
    "recruit/riic_res/PIONEER": ((750, 730), (1920, 860)),
    "recruit/riic_res/SNIPER": ((750, 730), (1920, 860)),
    "recruit/riic_res/SPECIAL": ((750, 730), (1920, 860)),
    "recruit/riic_res/SUPPORT": ((750, 730), (1920, 860)),
    "recruit/riic_res/TANK": ((750, 730), (1920, 860)),
    "recruit/riic_res/WARRIOR": ((750, 730), (1920, 860)),
    "recruit/start_recruit": (1438, 849),
    "recruit/stone": ((900, 0), (1920, 120)),
    "recruit/ticket": ((900, 0), (1920, 120)),
    "recruit/time": (1304, 112),
    "reload_check": (1252, 772),
    "riic/assistants": ((1320, 400), (1600, 650)),
    "riic/iron": ((1570, 230), (1630, 340)),
    "riic/orundum": ((1500, 320), (1800, 550)),
    "riic/trade": ((1320, 250), (1600, 500)),
    "sign_in/moon_festival/banner": (704, 92),
    "sss/abandon": ((0, 504), (289, 564)),
    "sss/drop/近卫": ((0, 745), (1920, 808)),
    "sss/drop/狙击": ((0, 745), (1920, 808)),
    "sss/drop/医疗": ((0, 745), (1920, 808)),
    "sss/drop/术士": ((0, 745), (1920, 808)),
    "sss/drop/先锋": ((0, 745), (1920, 808)),
    "sss/drop/重装": ((0, 745), (1920, 808)),
    "sss/drop/特种": ((0, 745), (1920, 808)),
    "sss/drop/辅助": ((0, 745), (1920, 808)),
    "sss/operation_complete": (30, 770),
    "sss/terminated": (29, 241),
    "stone_fragment": None,
    "story_skip": (1718, 58),
    "story_skip_confirm_dialog": (685, 655),
    "switch_order/check": None,
    "switch_order/lmb": (1442, 891),
    "switch_order/oru": (1442, 891),
    "terminal_regular": (1247, 980),
    "upgrade": (997, 501),
}

template_matching_score = {
    "connecting": 0.7,
    "choose_agent/battle_filter_close": 0.7,
    "choose_agent/profession/ALL": 0.6,
    "choose_agent/profession/CASTER": 0.6,
    "choose_agent/profession/MEDIC": 0.6,
    "choose_agent/profession/PIONEER": 0.6,
    "choose_agent/profession/SNIPER": 0.6,
    "choose_agent/profession/SPECIAL": 0.6,
    "choose_agent/profession/SUPPORT": 0.6,
    "choose_agent/profession/TANK": 0.6,
    "choose_agent/profession/WARRIOR": 0.6,
    "navigation/episode": 0.7,
    "navigation/ope_hard": 0.7,
    "navigation/ope_hard_small": 0.7,
    "navigation/ope_normal": 0.7,
    "navigation/ope_normal_small": 0.7,
    "ope_select_start": 0.7,
    "recruit/agent_token": 0.8,
    "recruit/agent_token_first": 0.8,
    "recruit/lmb": 0.7,
    "recruit/riic_res/CASTER": 0.7,
    "recruit/riic_res/MEDIC": 0.7,
    "recruit/riic_res/PIONEER": 0.7,
    "recruit/riic_res/SNIPER": 0.7,
    "recruit/riic_res/SPECIAL": 0.7,
    "recruit/riic_res/SUPPORT": 0.7,
    "recruit/riic_res/TANK": 0.7,
    "recruit/riic_res/WARRIOR": 0.7,
    "recruit/stone": 0.7,
    "recruit/time": 0.8,
    "sign_in/moon_festival/banner": 0.5,
}
