Просмотр исходного кода

feat: 添加启程之刻、冥夜游火、契光水境幕间皮肤适配

chubbycat 1 год назад
Родитель
Сommit
6a473496d2
68 измененных файлов с 638 добавлено и 3 удалено
  1. 3 0
      tasks/Component/Costume/config.py
  2. 1 1
      tasks/Component/Costume/costume_base.py
  3. 2 2
      tasks/Component/Costume/costume_test_shikigami.py
  4. 86 0
      tasks/Component/CostumeShikigami/assets.py
  5. BIN
      tasks/Component/CostumeShikigami/sk2/sk1_sou_team_present_2.png
  6. 182 0
      tasks/Component/CostumeShikigami/sk3/image.json
  7. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_check_records_3.png
  8. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_record_soul_back_3.png
  9. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_1_3.png
  10. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_2_3.png
  11. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_3_3.png
  12. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_4_3.png
  13. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_5_3.png
  14. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_6_3.png
  15. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_7_3.png
  16. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_check_in_3.png
  17. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_click_present_3.png
  18. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_1_3.png
  19. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_2_3.png
  20. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_3_3.png
  21. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_4_3.png
  22. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_sure_3.png
  23. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_sou_team_present_3.png
  24. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_soul_preset_3.png
  25. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_st_replace_3.png
  26. BIN
      tasks/Component/CostumeShikigami/sk3/sk3_st_souls_3.png
  27. 182 0
      tasks/Component/CostumeShikigami/sk4/image.json
  28. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_check_records_4.png
  29. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_record_soul_back_4.png
  30. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_1_4.png
  31. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_2_4.png
  32. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_3_4.png
  33. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_4_4.png
  34. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_5_4.png
  35. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_6_4.png
  36. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_7_4.png
  37. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_check_in_4.png
  38. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_click_present_4.png
  39. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_1_4.png
  40. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_2_4.png
  41. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_3_4.png
  42. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_4_4.png
  43. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_sure_4.png
  44. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_sou_team_present_4.png
  45. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_soul_preset_4.png
  46. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_st_replace_4.png
  47. BIN
      tasks/Component/CostumeShikigami/sk4/sk4_st_souls_4.png
  48. 182 0
      tasks/Component/CostumeShikigami/sk5/image.json
  49. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_check_records_5.png
  50. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_record_soul_back_5.png
  51. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_1_5.png
  52. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_2_5.png
  53. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_3_5.png
  54. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_4_5.png
  55. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_5_5.png
  56. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_6_5.png
  57. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_7_5.png
  58. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_check_in_5.png
  59. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_click_present_5.png
  60. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_switch_1_5.png
  61. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_switch_2_5.png
  62. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_switch_3_5.png
  63. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_switch_4_5.png
  64. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_switch_sure_5.png
  65. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_sou_team_present_5.png
  66. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_soul_preset_5.png
  67. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_st_replace_5.png
  68. BIN
      tasks/Component/CostumeShikigami/sk5/sk5_st_souls_5.png

+ 3 - 0
tasks/Component/Costume/config.py

@@ -37,6 +37,9 @@ class ShikigamiType(str, Enum):
     COSTUME_SHIKIGAMI_DEFAULT = 'costume_shikigami_default'  # 静栖走廊
     COSTUME_SHIKIGAMI_1 = 'costume_shikigami_1'  # 妙音空境
     COSTUME_SHIKIGAMI_2 = 'costume_shikigami_2'  # 缘台樱垂
+    COSTUME_SHIKIGAMI_3 = 'costume_shikigami_3'  # 启程之刻
+    COSTUME_SHIKIGAMI_4 = 'costume_shikigami_4'  # 冥夜游火
+    COSTUME_SHIKIGAMI_5 = 'costume_shikigami_5'  # 契光水境
 
 # 签到主题
 class SignType(str, Enum):

+ 1 - 1
tasks/Component/Costume/costume_base.py

@@ -72,7 +72,7 @@ shikigami_costume_model = {
         'I_ST_SOULS': f'I_ST_SOULS_{i}',
         'I_ST_REPLACE': f'I_ST_REPLACE_{i}',
     }
-    for i in range(1, 3)  # 目前只有 COSTUME_SHIKIGAMI_1,如需扩展可改 range
+    for i in range(1, 5)  # 目前只有 COSTUME_SHIKIGAMI_1,如需扩展可改 range
 }
 
 class CostumeBase:

+ 2 - 2
tasks/Component/Costume/costume_test_shikigami.py

@@ -67,7 +67,7 @@ class ScriptTask(GameUi, SwitchSoul, SwitchSoulAssets, SoulsTidyAssets):
         logger.info('Shikigami Costume Test Done')
 
         # 测试御魂切换功能 (1-7组,每组1-4切换)
-        # self.test_switch_soul_all_groups()
+        self.test_switch_soul_all_groups()
         
         # 测试御魂奉纳功能
         self.test_souls_tidy_donation()
@@ -162,6 +162,6 @@ if __name__ == '__main__':
     c = Config('oas1')
     d = Device(c)
     t = ScriptTask(c, d)
-    t.set_costume(ShikigamiType.COSTUME_SHIKIGAMI_2)
+    t.set_costume(ShikigamiType.COSTUME_SHIKIGAMI_4)
     # t.set_costume(ShikigamiType.COSTUME_SHIKIGAMI_DEFAULT)
     t.run()

+ 86 - 0
tasks/Component/CostumeShikigami/assets.py

@@ -96,3 +96,89 @@ class CostumeShikigamiAssets:
 	I_ST_REPLACE_2 = RuleImage(roi_front=(861,150,100,100), roi_back=(872,169,78,63), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_st_replace_2.png")
 
 
+	# Image Rule Assets
+	# 用于判断在式神录 
+	I_CHECK_RECORDS_3 = RuleImage(roi_front=(267,76,51,46), roi_back=(265,74,55,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_check_records_3.png")
+	# 退出式神录 
+	I_RECORD_SOUL_BACK_3 = RuleImage(roi_front=(19,9,51,44), roi_back=(19,9,51,44), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_record_soul_back_3.png")
+	# 预设 
+	I_SOUL_PRESET_3 = RuleImage(roi_front=(335,73,90,51), roi_back=(310,57,169,72), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_soul_preset_3.png")
+	# 第一组切换 
+	I_SOU_SWITCH_1_3 = RuleImage(roi_front=(973,140,34,32), roi_back=(967,131,51,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_1_3.png")
+	# 第二组切换 
+	I_SOU_SWITCH_2_3 = RuleImage(roi_front=(973,293,33,33), roi_back=(960,284,58,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_2_3.png")
+	# description 
+	I_SOU_SWITCH_3_3 = RuleImage(roi_front=(968,448,41,38), roi_back=(962,442,52,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_3_3.png")
+	# description 
+	I_SOU_SWITCH_4_3 = RuleImage(roi_front=(967,597,42,25), roi_back=(962,592,53,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_4_3.png")
+	# description 
+	I_SOU_SWITCH_SURE_3 = RuleImage(roi_front=(668,401,180,61), roi_back=(668,401,180,61), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_sure_3.png")
+	# 用于判断是否在式神录里面 
+	I_SOU_CHECK_IN_3 = RuleImage(roi_front=(268,74,50,49), roi_back=(268,74,50,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_check_in_3.png")
+	# 检查是否为第一组 
+	I_SOU_CHECK_GROUP_1_3 = RuleImage(roi_front=(1086,91,22,57), roi_back=(1086,91,22,57), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_1_3.png")
+	# description 
+	I_SOU_CHECK_GROUP_2_3 = RuleImage(roi_front=(1086,163,25,57), roi_back=(1086,163,25,57), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_2_3.png")
+	# description 
+	I_SOU_CHECK_GROUP_3_3 = RuleImage(roi_front=(1085,234,22,49), roi_back=(1085,234,22,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_3_3.png")
+	# description 
+	I_SOU_CHECK_GROUP_4_3 = RuleImage(roi_front=(1086,303,21,56), roi_back=(1086,303,21,56), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_4_3.png")
+	# description 
+	I_SOU_CHECK_GROUP_5_3 = RuleImage(roi_front=(1088,370,21,53), roi_back=(1088,370,21,53), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_5_3.png")
+	# description 
+	I_SOU_CHECK_GROUP_6_3 = RuleImage(roi_front=(1085,443,23,54), roi_back=(1085,443,23,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_6_3.png")
+	# description 
+	I_SOU_CHECK_GROUP_7_3 = RuleImage(roi_front=(1088,512,21,54), roi_back=(1088,512,21,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_7_3.png")
+	# 匹配队伍预设 
+	I_SOU_TEAM_PRESENT_3 = RuleImage(roi_front=(720,76,136,43), roi_back=(706,68,175,63), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_team_present_3.png")
+	# 需要切换的预设按钮(颜色深一点) 
+	I_SOU_CLICK_PRESENT_3 = RuleImage(roi_front=(967,305,43,22), roi_back=(965,142,48,480), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_sou_click_present_3.png")
+	# 点击御魂 
+	I_ST_SOULS_3 = RuleImage(roi_front=(1176,227,70,80), roi_back=(1181,234,58,69), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_st_souls_3.png")
+	# 更换 
+	I_ST_REPLACE_3 = RuleImage(roi_front=(860,168,100,100), roi_back=(872,186,78,63), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk3/sk3_st_replace_3.png")
+
+
+	# Image Rule Assets
+	# 用于判断在式神录 
+	I_CHECK_RECORDS_4 = RuleImage(roi_front=(267,76,51,46), roi_back=(265,74,55,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_check_records_4.png")
+	# 退出式神录 
+	I_RECORD_SOUL_BACK_4 = RuleImage(roi_front=(19,9,51,44), roi_back=(19,9,51,44), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_record_soul_back_4.png")
+	# 预设 
+	I_SOUL_PRESET_4 = RuleImage(roi_front=(335,73,90,51), roi_back=(310,57,169,72), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_soul_preset_4.png")
+	# 第一组切换 
+	I_SOU_SWITCH_1_4 = RuleImage(roi_front=(973,140,34,32), roi_back=(967,131,51,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_1_4.png")
+	# 第二组切换 
+	I_SOU_SWITCH_2_4 = RuleImage(roi_front=(973,293,33,33), roi_back=(960,284,58,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_2_4.png")
+	# description 
+	I_SOU_SWITCH_3_4 = RuleImage(roi_front=(968,448,41,38), roi_back=(962,442,52,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_3_4.png")
+	# description 
+	I_SOU_SWITCH_4_4 = RuleImage(roi_front=(967,597,42,25), roi_back=(962,592,53,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_4_4.png")
+	# description 
+	I_SOU_SWITCH_SURE_4 = RuleImage(roi_front=(668,401,180,61), roi_back=(668,401,180,61), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_sure_4.png")
+	# 用于判断是否在式神录里面 
+	I_SOU_CHECK_IN_4 = RuleImage(roi_front=(268,74,50,49), roi_back=(268,74,50,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_check_in_4.png")
+	# 检查是否为第一组 
+	I_SOU_CHECK_GROUP_1_4 = RuleImage(roi_front=(1086,91,22,57), roi_back=(1086,91,22,57), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_1_4.png")
+	# description 
+	I_SOU_CHECK_GROUP_2_4 = RuleImage(roi_front=(1086,163,25,57), roi_back=(1086,163,25,57), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_2_4.png")
+	# description 
+	I_SOU_CHECK_GROUP_3_4 = RuleImage(roi_front=(1085,234,22,49), roi_back=(1085,234,22,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_3_4.png")
+	# description 
+	I_SOU_CHECK_GROUP_4_4 = RuleImage(roi_front=(1086,303,21,56), roi_back=(1086,303,21,56), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_4_4.png")
+	# description 
+	I_SOU_CHECK_GROUP_5_4 = RuleImage(roi_front=(1088,370,21,53), roi_back=(1088,370,21,53), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_5_4.png")
+	# description 
+	I_SOU_CHECK_GROUP_6_4 = RuleImage(roi_front=(1085,443,23,54), roi_back=(1085,443,23,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_6_4.png")
+	# description 
+	I_SOU_CHECK_GROUP_7_4 = RuleImage(roi_front=(1088,512,21,54), roi_back=(1088,512,21,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_7_4.png")
+	# 匹配队伍预设 
+	I_SOU_TEAM_PRESENT_4 = RuleImage(roi_front=(720,76,136,43), roi_back=(706,68,175,63), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_team_present_4.png")
+	# 需要切换的预设按钮(颜色深一点) 
+	I_SOU_CLICK_PRESENT_4 = RuleImage(roi_front=(967,305,43,22), roi_back=(965,142,48,480), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_sou_click_present_4.png")
+	# 点击御魂 
+	I_ST_SOULS_4 = RuleImage(roi_front=(1176,227,70,80), roi_back=(1181,234,58,69), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_st_souls_4.png")
+	# 更换 
+	I_ST_REPLACE_4 = RuleImage(roi_front=(860,168,100,100), roi_back=(872,186,78,63), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk4/sk4_st_replace_4.png")
+
+

BIN
tasks/Component/CostumeShikigami/sk2/sk1_sou_team_present_2.png


+ 182 - 0
tasks/Component/CostumeShikigami/sk3/image.json

@@ -0,0 +1,182 @@
+[
+  {
+    "itemName": "check_records_3",
+    "imageName": "sk3_check_records_3.png",
+    "roiFront": "267,76,51,46",
+    "roiBack": "265,74,55,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断在式神录"
+  },
+  {
+    "itemName": "record_soul_back_3",
+    "imageName": "sk3_record_soul_back_3.png",
+    "roiFront": "19,9,51,44",
+    "roiBack": "19,9,51,44",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "退出式神录"
+  },
+  {
+    "itemName": "soul_preset_3",
+    "imageName": "sk3_soul_preset_3.png",
+    "roiFront": "335,73,90,51",
+    "roiBack": "310,57,169,72",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "预设"
+  },
+  {
+    "itemName": "sou_switch_1_3",
+    "imageName": "sk3_sou_switch_1_3.png",
+    "roiFront": "973,140,34,32",
+    "roiBack": "967,131,51,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第一组切换"
+  },
+  {
+    "itemName": "sou_switch_2_3",
+    "imageName": "sk3_sou_switch_2_3.png",
+    "roiFront": "973,293,33,33",
+    "roiBack": "960,284,58,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第二组切换"
+  },
+  {
+    "itemName": "sou_switch_3_3",
+    "imageName": "sk3_sou_switch_3_3.png",
+    "roiFront": "968,448,41,38",
+    "roiBack": "962,442,52,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_4_3",
+    "imageName": "sk3_sou_switch_4_3.png",
+    "roiFront": "967,597,42,25",
+    "roiBack": "962,592,53,34",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_sure_3",
+    "imageName": "sk3_sou_switch_sure_3.png",
+    "roiFront": "668,401,180,61",
+    "roiBack": "668,401,180,61",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_in_3",
+    "imageName": "sk3_sou_check_in_3.png",
+    "roiFront": "268,74,50,49",
+    "roiBack": "268,74,50,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断是否在式神录里面"
+  },
+  {
+    "itemName": "sou_check_group_1_3",
+    "imageName": "sk3_sou_check_group_1_3.png",
+    "roiFront": "1086,91,22,57",
+    "roiBack": "1086,91,22,57",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "检查是否为第一组"
+  },
+  {
+    "itemName": "sou_check_group_2_3",
+    "imageName": "sk3_sou_check_group_2_3.png",
+    "roiFront": "1086,163,25,57",
+    "roiBack": "1086,163,25,57",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_3_3",
+    "imageName": "sk3_sou_check_group_3_3.png",
+    "roiFront": "1085,234,22,49",
+    "roiBack": "1085,234,22,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_4_3",
+    "imageName": "sk3_sou_check_group_4_3.png",
+    "roiFront": "1086,303,21,56",
+    "roiBack": "1086,303,21,56",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_5_3",
+    "imageName": "sk3_sou_check_group_5_3.png",
+    "roiFront": "1088,370,21,53",
+    "roiBack": "1088,370,21,53",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_6_3",
+    "imageName": "sk3_sou_check_group_6_3.png",
+    "roiFront": "1085,443,23,54",
+    "roiBack": "1085,443,23,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_7_3",
+    "imageName": "sk3_sou_check_group_7_3.png",
+    "roiFront": "1088,512,21,54",
+    "roiBack": "1088,512,21,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_team_present_3",
+    "imageName": "sk3_sou_team_present_3.png",
+    "roiFront": "720,76,136,43",
+    "roiBack": "706,68,175,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "匹配队伍预设"
+  },
+  {
+    "itemName": "sou_click_present_3",
+    "imageName": "sk3_sou_click_present_3.png",
+    "roiFront": "967,305,43,22",
+    "roiBack": "965,142,48,480",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "需要切换的预设按钮(颜色深一点)"
+  },
+  {
+    "itemName": "st_souls_3",
+    "imageName": "sk3_st_souls_3.png",
+    "roiFront": "1176,227,70,80",
+    "roiBack": "1181,234,58,69",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "点击御魂"
+  },
+  {
+    "itemName": "st_replace_3",
+    "imageName": "sk3_st_replace_3.png",
+    "roiFront": "860,168,100,100",
+    "roiBack": "872,186,78,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "更换"
+  }
+]

BIN
tasks/Component/CostumeShikigami/sk3/sk3_check_records_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_record_soul_back_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_1_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_2_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_3_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_4_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_5_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_6_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_check_group_7_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_check_in_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_click_present_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_1_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_2_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_3_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_4_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_switch_sure_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_sou_team_present_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_soul_preset_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_st_replace_3.png


BIN
tasks/Component/CostumeShikigami/sk3/sk3_st_souls_3.png


+ 182 - 0
tasks/Component/CostumeShikigami/sk4/image.json

@@ -0,0 +1,182 @@
+[
+  {
+    "itemName": "check_records_4",
+    "imageName": "sk4_check_records_4.png",
+    "roiFront": "267,76,51,46",
+    "roiBack": "265,74,55,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断在式神录"
+  },
+  {
+    "itemName": "record_soul_back_4",
+    "imageName": "sk4_record_soul_back_4.png",
+    "roiFront": "19,9,51,44",
+    "roiBack": "19,9,51,44",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "退出式神录"
+  },
+  {
+    "itemName": "soul_preset_4",
+    "imageName": "sk4_soul_preset_4.png",
+    "roiFront": "335,73,90,51",
+    "roiBack": "310,57,169,72",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "预设"
+  },
+  {
+    "itemName": "sou_switch_1_4",
+    "imageName": "sk4_sou_switch_1_4.png",
+    "roiFront": "973,140,34,32",
+    "roiBack": "967,131,51,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第一组切换"
+  },
+  {
+    "itemName": "sou_switch_2_4",
+    "imageName": "sk4_sou_switch_2_4.png",
+    "roiFront": "973,293,33,33",
+    "roiBack": "960,284,58,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第二组切换"
+  },
+  {
+    "itemName": "sou_switch_3_4",
+    "imageName": "sk4_sou_switch_3_4.png",
+    "roiFront": "968,448,41,38",
+    "roiBack": "962,442,52,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_4_4",
+    "imageName": "sk4_sou_switch_4_4.png",
+    "roiFront": "967,597,42,25",
+    "roiBack": "962,592,53,34",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_sure_4",
+    "imageName": "sk4_sou_switch_sure_4.png",
+    "roiFront": "668,401,180,61",
+    "roiBack": "668,401,180,61",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_in_4",
+    "imageName": "sk4_sou_check_in_4.png",
+    "roiFront": "268,74,50,49",
+    "roiBack": "268,74,50,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断是否在式神录里面"
+  },
+  {
+    "itemName": "sou_check_group_1_4",
+    "imageName": "sk4_sou_check_group_1_4.png",
+    "roiFront": "1086,91,22,57",
+    "roiBack": "1086,91,22,57",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "检查是否为第一组"
+  },
+  {
+    "itemName": "sou_check_group_2_4",
+    "imageName": "sk4_sou_check_group_2_4.png",
+    "roiFront": "1086,163,25,57",
+    "roiBack": "1086,163,25,57",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_3_4",
+    "imageName": "sk4_sou_check_group_3_4.png",
+    "roiFront": "1085,234,22,49",
+    "roiBack": "1085,234,22,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_4_4",
+    "imageName": "sk4_sou_check_group_4_4.png",
+    "roiFront": "1086,303,21,56",
+    "roiBack": "1086,303,21,56",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_5_4",
+    "imageName": "sk4_sou_check_group_5_4.png",
+    "roiFront": "1088,370,21,53",
+    "roiBack": "1088,370,21,53",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_6_4",
+    "imageName": "sk4_sou_check_group_6_4.png",
+    "roiFront": "1085,443,23,54",
+    "roiBack": "1085,443,23,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_7_4",
+    "imageName": "sk4_sou_check_group_7_4.png",
+    "roiFront": "1088,512,21,54",
+    "roiBack": "1088,512,21,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_team_present_4",
+    "imageName": "sk4_sou_team_present_4.png",
+    "roiFront": "720,76,136,43",
+    "roiBack": "706,68,175,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "匹配队伍预设"
+  },
+  {
+    "itemName": "sou_click_present_4",
+    "imageName": "sk4_sou_click_present_4.png",
+    "roiFront": "967,305,43,22",
+    "roiBack": "965,142,48,480",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "需要切换的预设按钮(颜色深一点)"
+  },
+  {
+    "itemName": "st_souls_4",
+    "imageName": "sk4_st_souls_4.png",
+    "roiFront": "1176,227,70,80",
+    "roiBack": "1181,234,58,69",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "点击御魂"
+  },
+  {
+    "itemName": "st_replace_4",
+    "imageName": "sk4_st_replace_4.png",
+    "roiFront": "860,168,100,100",
+    "roiBack": "872,186,78,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "更换"
+  }
+]

BIN
tasks/Component/CostumeShikigami/sk4/sk4_check_records_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_record_soul_back_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_1_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_2_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_3_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_4_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_5_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_6_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_check_group_7_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_check_in_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_click_present_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_1_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_2_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_3_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_4_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_switch_sure_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_sou_team_present_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_soul_preset_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_st_replace_4.png


BIN
tasks/Component/CostumeShikigami/sk4/sk4_st_souls_4.png


+ 182 - 0
tasks/Component/CostumeShikigami/sk5/image.json

@@ -0,0 +1,182 @@
+[
+  {
+    "itemName": "check_records_5",
+    "imageName": "sk5_check_records_5.png",
+    "roiFront": "267,76,51,46",
+    "roiBack": "265,74,55,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断在式神录"
+  },
+  {
+    "itemName": "record_soul_back_5",
+    "imageName": "sk5_record_soul_back_5.png",
+    "roiFront": "19,9,51,44",
+    "roiBack": "19,9,51,44",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "退出式神录"
+  },
+  {
+    "itemName": "soul_preset_5",
+    "imageName": "sk5_soul_preset_5.png",
+    "roiFront": "335,73,90,51",
+    "roiBack": "310,57,169,72",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "预设"
+  },
+  {
+    "itemName": "sou_switch_1_5",
+    "imageName": "sk5_sou_switch_1_5.png",
+    "roiFront": "973,140,34,32",
+    "roiBack": "967,131,51,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第一组切换"
+  },
+  {
+    "itemName": "sou_switch_2_5",
+    "imageName": "sk5_sou_switch_2_5.png",
+    "roiFront": "973,293,33,33",
+    "roiBack": "960,284,58,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第二组切换"
+  },
+  {
+    "itemName": "sou_switch_3_5",
+    "imageName": "sk5_sou_switch_3_5.png",
+    "roiFront": "968,448,41,38",
+    "roiBack": "962,442,52,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_4_5",
+    "imageName": "sk5_sou_switch_4_5.png",
+    "roiFront": "967,597,42,25",
+    "roiBack": "962,592,53,34",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_sure_5",
+    "imageName": "sk5_sou_switch_sure_5.png",
+    "roiFront": "668,401,180,61",
+    "roiBack": "668,401,180,61",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_in_5",
+    "imageName": "sk5_sou_check_in_5.png",
+    "roiFront": "268,74,50,49",
+    "roiBack": "268,74,50,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断是否在式神录里面"
+  },
+  {
+    "itemName": "sou_check_group_1_5",
+    "imageName": "sk5_sou_check_group_1_5.png",
+    "roiFront": "1086,91,22,57",
+    "roiBack": "1086,91,22,57",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "检查是否为第一组"
+  },
+  {
+    "itemName": "sou_check_group_2_5",
+    "imageName": "sk5_sou_check_group_2_5.png",
+    "roiFront": "1086,163,25,57",
+    "roiBack": "1086,163,25,57",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_3_5",
+    "imageName": "sk5_sou_check_group_3_5.png",
+    "roiFront": "1085,234,22,49",
+    "roiBack": "1085,234,22,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_4_5",
+    "imageName": "sk5_sou_check_group_4_5.png",
+    "roiFront": "1086,303,21,56",
+    "roiBack": "1086,303,21,56",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_5_5",
+    "imageName": "sk5_sou_check_group_5_5.png",
+    "roiFront": "1088,370,21,53",
+    "roiBack": "1088,370,21,53",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_6_5",
+    "imageName": "sk5_sou_check_group_6_5.png",
+    "roiFront": "1085,443,23,54",
+    "roiBack": "1085,443,23,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_7_5",
+    "imageName": "sk5_sou_check_group_7_5.png",
+    "roiFront": "1088,512,21,54",
+    "roiBack": "1088,512,21,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_team_present_5",
+    "imageName": "sk5_sou_team_present_5.png",
+    "roiFront": "720,76,136,43",
+    "roiBack": "706,68,175,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "匹配队伍预设"
+  },
+  {
+    "itemName": "sou_click_present_5",
+    "imageName": "sk5_sou_click_present_5.png",
+    "roiFront": "967,305,43,22",
+    "roiBack": "965,142,48,480",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "需要切换的预设按钮(颜色深一点)"
+  },
+  {
+    "itemName": "st_souls_5",
+    "imageName": "sk5_st_souls_5.png",
+    "roiFront": "1176,227,70,80",
+    "roiBack": "1181,234,58,69",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "点击御魂"
+  },
+  {
+    "itemName": "st_replace_5",
+    "imageName": "sk5_st_replace_5.png",
+    "roiFront": "860,168,100,100",
+    "roiBack": "872,186,78,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "更换"
+  }
+]

BIN
tasks/Component/CostumeShikigami/sk5/sk5_check_records_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_record_soul_back_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_1_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_2_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_3_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_4_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_5_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_6_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_check_group_7_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_check_in_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_click_present_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_switch_1_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_switch_2_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_switch_3_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_switch_4_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_switch_sure_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_sou_team_present_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_soul_preset_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_st_replace_5.png


BIN
tasks/Component/CostumeShikigami/sk5/sk5_st_souls_5.png