color = {
    "12cadpa": (1810, 21),
    "1800": (158, 958),
    "I_know": (898, 803),
    "all_in": (1393, 475),
    "build_mode": (55, 287),
    "can_not_use_ope": (1653, 184),
    "choose_agent/battle_confirm": ((1476, 991), (1591, 991)),
    "choose_agent/can_not_change": (981, 1018),
    "choose_agent/riic/mood_up": (1538, 42),
    "choose_agent/riic/open_profession": (1821, 49),
    "choose_agent/riic/work_state": (1270, 50),
    "choose_agent/riic/work_state_blue": (1269, 46),
    "choose_agent/support_agent": (619, 44),
    "choose_agent/support_status": (1038, 41),
    "clue/daily": (526, 623),
    "clue/filter_all": (1297, 99),
    "clue/give_away": (25, 18),
    "clue/receive": (1295, 15),
    "clue/summary": (59, 153),
    "clue/title_party": (1621, 200),
    "confirm": (0, 683),
    "confirm_blue": ((1609, 990), (1724, 990)),
    "contract": (1652, 699),
    "control_central_assistants": (39, 560),
    "depot/all": (875, 46),
    "depot/all_in": (872, 45),
    "double_confirm/exit": (940, 464),
    "double_confirm/explore": (979, 434),
    "double_confirm/friend": (978, 465),
    "double_confirm/give_up": (574, 716),
    "double_confirm/headhunting": (854, 463),
    "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/refresh_shop": (901, 435),
    "double_confirm/rogue_recruit": (978, 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/ban": (976, 268),
    "fight/breach": (1246, 23),
    "fight/collection": (1088, 25),
    "fight/collection_on": (1084, 22),
    "fight/give_up": (1352, 838),
    "hypergryph": (0, 961),
    "infra_notification": (1763, 109),
    "infra_overview": (58, 145),
    "infra_overview_rest": (1593, 57),
    "infra_overview_top_right": (1820, 0),
    "infra_overview_work": (1310, 56),
    "infra_todo": (14, 1016),
    "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/collect": (1601, 979),
    "mail/delete": (1226, 978),
    "mission_collect": (1521, 164),
    "mission_trainee_on": (690, 17),
    "nav_bar": (655, 0),
    "nav_button": (26, 20),
    "navigation/activity/banner_ex": (1653, 850),
    "navigation/activity/banner_normal": (1390, 852),
    "navigation/activity/entry_ex": (1395, 901),
    "navigation/activity/entry_normal": (1505, 742),
    "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": (1414, 618),
    "ope_eliminate": (1332, 938),
    "ope_ex_mode": (1020, 987),
    "ope_ex_start": (1686, 986),
    "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),
    "restore_all_sanity": (759, 789),
    "rhodes": (1, 1054),
    "riic/assistants_title": (904, 211),
    "riic/manufacture": (1328, 126),
    "riic/none": ((620, 289), (259, 736), (500, 736), (740, 736), (980, 736)),
    "riic/report_title": (1712, 25),
    "rogue/Sarkaz_load/block": (237, 436),
    "rogue/Sarkaz_load/concentrate": (1758, 166),
    "rogue/Sarkaz_load/lose": (1008, 798),
    "rogue/action": (1430, 964),
    "rogue/back": ((28, 14), (264, 14)),
    "rogue/check_recruit": (1705, 997),
    "rogue/choose_support": (940, 33),
    "rogue/double_confirm/check_blank": (802, 563),
    "rogue/double_confirm/main": (906, 678),
    "rogue/double_confirm/no_more_tips": (977, 559),
    "rogue/double_confirm/this_node": (809, 603),
    "rogue/full_level/Mizuki": (1576, 61),
    "rogue/full_level/Phantom": (1559, 58),
    "rogue/full_level/Sami": (1580, 64),
    "rogue/full_level/Sarkaz": (1579, 63),
    "rogue/full_money/Mizuki": (320, 824),
    "rogue/full_money/Phantom": (274, 827),
    "rogue/full_money/Sami": (266, 807),
    "rogue/full_money/Sarkaz": (134, 712),
    "rogue/green_recruit": ((490, 750), (924, 750), (1357, 750)),
    "rogue/hide_dart": (1, 776),
    "rogue/init_recruit": (941, 34),
    "rogue/level_up_check": (926, 877),
    "rogue/monthly_commision": (837, 134),
    "rogue/regular1": (1362, 1017),
    "rogue/regular2": (1262, 981),
    "rogue/regular3": (1263, 980),
    "rogue/regular4": (1262, 970),
    "rogue/select_recruit_combination": (909, 34),
    "rogue/select_team": (938, 33),
    "rogue/shop/eccentric_businessman": (76, 648),
    "rogue/shop/full_1": (693, 448),
    "rogue/shop/full_2": (965, 318),
    "rogue/shop/full_3": (883, 513),
    "rogue/shop/invest_system": (728, 250),
    "rogue/shop/investment_portal": (727, 449),
    "rogue/shop/restricted_investment": (1082, 438),
    "rogue/shop/stop_invest": (624, 338),
    "rogue/shop/stop_service": (1185, 457),
    "rogue/team": (1619, 1027),
    "rogue/theme_select": (1838, 0),
    "room_detail": (1291, 33),
    "sanity_charge": (1111, 382),
    "sanity_charge_dialog": (570, 529),
    "shop/cart": (1252, 842),
    "shop/collect": (1467, 43),
    "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": (127, 762),
    "sign_in/moon_festival/moon_cake": (1216, 503),
    "sign_in/orundum/banner": (93, 814),
    "sign_in/orundum/choose": (1590, 798),
    "sign_in/orundum/complete": (1641, 800),
    "sign_in/orundum/confirm": (1625, 798),
    "skip": (1803, 32),
    "sss/EC_up": (1049, 490),
    "sss/action": (1641, 967),
    "sss/action_ex": (1641, 966),
    "sss/add_agent": (1805, 684),
    "sss/check_ex": (1641, 967),
    "sss/choose/choose_support": (1119, 38),
    "sss/choose/fast_select": (1440, 35),
    "sss/choose_ec": (1642, 965),
    "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/ec": (1644, 969),
    "sss/finish_check": (745, 462),
    "sss/loading": (1642, 517),
    "sss/loading_ex": (1647, 524),
    "sss/main": (1569, 256),
    "sss/no_drop_check": (1669, 865),
    "sss/ope/elimi_agency_on": (1653, 857),
    "sss/ope/use": (1627, 965),
    "sss/redeploy": (1644, 970),
    "sss/redeploy_ex": (1642, 968),
    "sss/settlement_commission": (1593, 31),
    "sss/squad": (1645, 970),
    "sss/start": (1547, 968),
    "sss/start_directly": (1642, 610),
    "sss/start_ex": (1545, 966),
    "sss/switch_to_ex": (1255, 942),
    "sss/switch_to_normal": (1255, 934),
    "start_story": (1392, 623),
    "terminal_main": (1658, 734),
    "x1": (1477, 784),
    "fight/tower": (1028, 28),
}

template_matching = {
    "announcement_close": ((960, 0), (1920, 540)),
    "arrange_check_in": ((30, 300), (175, 700)),
    "arrange_check_in_on": ((30, 300), (175, 700)),
    "arrange_confirm": (755, 903),
    "bill_accelerate": ((428, 713), [1920, 770]),
    "biography": (768, 934),
    "business_card": (55, 165),
    "choose_agent/battle_empty": (92, 296),
    "choose_agent/battle_filter": (1650, 54),
    "choose_agent/battle_filter_close": (1836, 19),
    "choose_agent/clear": (644, 980),
    "choose_agent/fast_select": ((1296, 25), (1592, 98)),
    "choose_agent/foldup": (1831, 48),
    "choose_agent/open_profession": (1823, 51),
    "choose_agent/profession/ALL": (1828, 46),
    "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/profession/choose_arrow": ((1850, 125), (1920, 1080)),
    "choose_agent/support_skill_be_choosen": None,
    "choose_product_options": (1174, 23),
    "clue": (1744, 861),
    "clue/badge_new": None,
    "collection": (1005, 943),
    "collection_small": (1053, 982),
    "connecting": (1087, 978),
    "credit_visiting": (78, 220),
    "episode": (535, 937),
    "factory_accelerate": (1800, 775),
    "fight/attack": (15, 270),
    "fight/defend": (27, 406),
    "fight/gear": (82, 45),
    "fight/pause": (740, 480),
    "fight/pause_sign": (1774, 59),
    "fight/refresh": (1639, 22),
    "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),
    "mail/banner": (315, 44),
    "mail/clean": ((1560, 150), (1830, 390)),
    "mail/complete": ((1560, 150), (1830, 390)),
    "main_theme": (283, 945),
    "main_theme_small": (321, 973),
    "materiel_ico": (892, 61),
    "mission_daily": ((685, 15), (1910, 100)),
    "mission_daily_on": ((685, 15), (1910, 100)),
    "mission_weekly": ((685, 15), (1910, 100)),
    "mission_weekly_on": ((685, 15), (1910, 100)),
    "navigation/act/0": (309, 318),
    "navigation/act/1": (309, 319),
    "navigation/act/2": (307, 319),
    "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_empty": ((0, 0), (400, 400)),
    "ope_start": ((1685, 961), (1847, 1028)),
    "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/begin_recruit": None,
    "recruit/job_requirements": None,
    "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)),
    "reload_check": (1252, 772),
    "riic/assistants": ((1320, 400), (1600, 650)),
    "riic/iron": ((1570, 230), (1630, 340)),
    "riic/trade": ((1320, 250), (1600, 500)),
    "rogue/Sarkaz_dart": (267, 763),
    "rogue/Sarkaz_load/idea": ((550, 220), (1920, 900)),
    "rogue/Sarkaz_load/mental_load": (177, 234),
    "rogue/abandon_explore/Sarkaz": (1603, 539),
    "rogue/go": ((1618, 730), (1850, 950)),
    "rogue/layer_loading/1": (881, 884),
    "rogue/layer_loading/2": (882, 884),
    "rogue/node_be_choosed": None,
    "rogue/node_check_to_do": ((1712, 100), (1867, 960)),
    "rogue/playing_tips": (135, 15),
    "rogue/refresh": ((1205, 200), (1256, 350)),
    "rogue/team_check_to_do": ((0, 800), (1920, 960)),
    "rogue/view_data_back": (147, 46),
    "sign_in/moon_festival/banner": (704, 92),
    "sss/abandon": ((0, 504), (289, 564)),
    "sss/accomplished": (640, 381),
    "sss/drop/CASTER": ((0, 745), (1920, 808)),
    "sss/drop/MEDIC": ((0, 745), (1920, 808)),
    "sss/drop/PIONEER": ((0, 745), (1920, 808)),
    "sss/drop/SNIPER": ((0, 745), (1920, 808)),
    "sss/drop/SPECIAL": ((0, 745), (1920, 808)),
    "sss/drop/SUPPORT": ((0, 745), (1920, 808)),
    "sss/drop/TANK": ((0, 745), (1920, 808)),
    "sss/drop/WARRIOR": ((0, 745), (1920, 808)),
    "sss/drop_EC": (48, 182),
    "sss/ope/prts": (1369, 857),
    "sss/operation_complete": (30, 770),
    "sss/terminated": (29, 241),
    "stone_fragment": None,
    "story_skip": (1718, 58),
    "story_skip_confirm_dialog": ((685, 504), (1234, 730)),
    "switch_order/check": None,
    "switch_order/lmb": (1442, 891),
    "switch_order/oru": (1442, 891),
    "terminal_longterm": (1485, 954),
    "terminal_regular": (1247, 980),
    "upgrade": (997, 501),
}

template_matching_score = {
    "choose_agent/battle_filter_close": 0.75,
    "choose_agent/open_profession": 0.8,
    "choose_agent/profession/CASTER": 0.8,
    "choose_agent/profession/MEDIC": 0.8,
    "choose_agent/profession/PIONEER": 0.8,
    "choose_agent/profession/SNIPER": 0.8,
    "choose_agent/profession/SPECIAL": 0.8,
    "choose_agent/profession/SUPPORT": 0.8,
    "choose_agent/profession/TANK": 0.8,
    "choose_agent/profession/WARRIOR": 0.8,
    "choose_agent/riic/work_state_blue": 0.8,
    "connecting": 0.7,
    "fight/pause": 0.8,
    "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,
    "rogue/node_be_choosed": 0.7,
    "sign_in/moon_festival/banner": 0.5,
    "sss/add_agent": 0.8,
    "sss/drop_EC": 0.8,
    "story_skip": 0.7,
}
