Переглянути джерело

feat: 添加缘台樱垂和妙音空境幕间皮肤

chubbycat 1 рік тому
батько
коміт
b0ec5729c0
28 змінених файлів з 398 додано та 34 видалено
  1. 146 0
      QWEN.md
  2. 18 26
      tasks/Component/Costume/costume_base.py
  3. 4 3
      tasks/Component/Costume/costume_test_shikigami.py
  4. 45 2
      tasks/Component/CostumeShikigami/assets.py
  5. 3 3
      tasks/Component/CostumeShikigami/sk1/image.json
  6. BIN
      tasks/Component/CostumeShikigami/sk1/sk1_st_souls_1.png
  7. 182 0
      tasks/Component/CostumeShikigami/sk2/image.json
  8. BIN
      tasks/Component/CostumeShikigami/sk2/sk1_sou_team_present_2.png
  9. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_check_records_2.png
  10. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_record_soul_back_2.png
  11. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_1_2.png
  12. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_2_2.png
  13. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_3_2.png
  14. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_4_2.png
  15. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_5_2.png
  16. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_6_2.png
  17. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_7_2.png
  18. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_check_in_2.png
  19. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_click_present_2.png
  20. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_switch_1_2.png
  21. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_switch_2_2.png
  22. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_switch_3_2.png
  23. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_switch_4_2.png
  24. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_switch_sure_2.png
  25. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_sou_team_present_2.png
  26. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_soul_preset_2.png
  27. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_st_replace_2.png
  28. BIN
      tasks/Component/CostumeShikigami/sk2/sk2_st_souls_2.png

+ 146 - 0
QWEN.md

@@ -0,0 +1,146 @@
+# OnmyojiAutoScript (OAS) - Project Context
+
+## Project Overview
+
+**OnmyojiAutoScript (OAS)** is an automation script for the mobile game "Onmyoji" (阴阳师), designed to automate various in-game tasks to reduce player effort. The project is built with Python and provides both a command-line interface and a graphical user interface.
+
+### Key Features
+- Automates daily tasks like demon encounters, realm raids, exploration, Orochi battles, and more
+- Supports both solo and multiplayer modes for various activities
+- Includes a rich configuration system with many customization options
+- Provides a GUI built with Qt/FluentUI for easy configuration and monitoring
+- Uses computer vision and OCR for game state recognition
+- Works with Android emulators via ADB
+
+### Technologies Used
+- **Language**: Python 3.10+
+- **GUI Framework**: PySide6 (Qt) with QML for FluentUI
+- **Computer Vision**: OpenCV
+- **OCR**: PaddleOCR (via ppocr-onnx)
+- **Device Control**: ADB (Android Debug Bridge)
+- **Configuration**: Pydantic for type-safe configuration management
+- **Networking**: ZeroRPC for inter-process communication
+- **Web Framework**: FastAPI for web-based interfaces
+
+## Project Structure
+
+```
+OnmyojiAutoScript/
+├── config/                 # Configuration templates and i18n files
+├── module/                 # Core modules (device control, GUI, OCR, etc.)
+│   ├── base/               # Base classes and utilities
+│   ├── config/             # Configuration management
+│   ├── device/             # Device connection and control
+│   ├── gui/                # Graphical user interface
+│   ├── ocr/                # Optical character recognition
+│   └── ...
+├── tasks/                  # Individual automation tasks
+│   ├── Orochi/             # Orochi (八岐大蛇) automation
+│   ├── RealmRaid/          # Realm raid automation
+│   ├── Exploration/        # Exploration automation
+│   └── ...                 # Many other task modules
+├── fluentui/               # FluentUI resources
+└── ...
+```
+
+## Core Components
+
+### 1. Task System
+The project is organized around modular tasks, each representing a specific in-game activity:
+- Each task is in its own directory under `tasks/`
+- Tasks inherit from base classes that provide common functionality
+- Configuration is defined using Pydantic models
+- Tasks can be enabled/disabled and scheduled through the config
+
+### 2. Device Management
+- Connects to Android devices/emulators via ADB
+- Handles screenshot capture and input simulation
+- Supports multiple screenshot methods (ADB, Scrcpy, etc.)
+- Manages app start/stop operations
+
+### 3. GUI System
+- Built with Qt/FluentUI for a modern interface
+- Uses QML for UI layout and design
+- Communicates with the backend via ZeroRPC
+- Allows real-time monitoring and configuration
+
+### 4. Configuration
+- Centralized configuration system using JSON templates
+- Pydantic models for type validation
+- Extensive customization options for each task
+- Support for multiple configuration profiles
+
+## Development Setup
+
+### Prerequisites
+- Python 3.10+
+- Android emulator or device with ADB enabled
+- Required Python packages listed in `requirements.txt`
+
+### Installation Steps
+1. Clone the repository
+2. Install dependencies: `pip install -r requirements.txt`
+3. Configure the script by editing JSON config files or using the GUI
+
+### Running the Application
+- GUI mode: `python gui.py`
+- Script mode: `python script.py`
+- Server mode: `python server.py`
+
+## Key Development Concepts
+
+### Task Implementation
+Tasks are implemented by creating a `ScriptTask` class that inherits from relevant base classes:
+- `GeneralBattle` for combat-related functionality
+- `GeneralInvite` for team invitation mechanics
+- `SwitchSoul` for御魂 switching
+- Task-specific asset definitions for image recognition
+
+### Device Interaction
+The `Device` class handles all interactions with the Android device:
+- Screenshot capture and processing
+- Touch input simulation
+- App lifecycle management
+- Stuck detection and error handling
+
+### GUI Architecture
+The GUI uses a context-based approach:
+- Context objects provide data and functions to QML
+- Bridge pattern for communication between Python backend and QML frontend
+- FluentUI components for consistent design language
+
+## Common Development Patterns
+
+1. **Inheritance Chain**: Tasks inherit from multiple base classes to compose functionality
+2. **Configuration-Driven**: All behavior is controlled through configuration files
+3. **Image Recognition**: Uses template matching and OCR for game state detection
+4. **State Machine**: Tasks follow defined state transitions based on UI elements
+5. **Error Handling**: Comprehensive exception handling with automatic recovery
+
+## Testing and Debugging
+
+- Use the GUI to monitor real-time execution
+- Check logs in the `log/` directory for debugging information
+- Use development tools in the `dev_tools/` directory
+- Enable debug options in configuration for detailed output
+
+## Contribution Guidelines
+
+- Follow the existing code structure and patterns
+- Use type hints for all function signatures
+- Write clear docstrings for complex functions
+- Test changes thoroughly with the target emulator/device
+- Follow the project's naming conventions (snake_case for files/variables, PascalCase for classes)
+
+## Useful Resources
+
+- Documentation: https://runhey.github.io/OnmyojiAutoScript-website/
+- Main repository: https://github.com/runhey/OnmyojiAutoScript
+- Related projects: Based on Alas (AzurLaneAutoScript) framework
+
+## Important Notes
+
+1. This script is for educational purposes only
+2. Use at your own risk - automated gameplay may violate game terms of service
+3. The project is licensed under GNU General Public License v3.0
+4. Keep the script updated to maintain compatibility with game changes

+ 18 - 26
tasks/Component/Costume/costume_base.py

@@ -52,38 +52,30 @@ for i in range(1, 11):
         })
     battle_theme_model[getattr(BattleType, f"COSTUME_BATTLE_{i}")] = entry
 
-
-class CostumeBase:
-
-    # 幕间(式神录)皮肤映射:ShikigamiType -> { 原始资产名: 皮肤资产名 }
-    # 使用动态生成方式,减少重复代码并支持扩展
-    _shikigami_base_assets = [
+# 幕间主题
+shikigami_costume_model = {
+    getattr(ShikigamiType, f"COSTUME_SHIKIGAMI_{i}"): {
         # GameUi 进出式神录
-        'I_CHECK_RECORDS',
-        'I_RECORD_SOUL_BACK',
+        'I_CHECK_RECORDS': f'I_CHECK_RECORDS_{i}',
+        'I_RECORD_SOUL_BACK': f'I_RECORD_SOUL_BACK_{i}',
         # SwitchSoul 相关
-        'I_SOUL_PRESET',
-        'I_SOU_CHECK_IN',
-        'I_SOU_TEAM_PRESENT',
-        'I_SOU_CLICK_PRESENT',
-        'I_SOU_SWITCH_SURE',
+        'I_SOUL_PRESET': f'I_SOUL_PRESET_{i}',
+        'I_SOU_CHECK_IN': f'I_SOU_CHECK_IN_{i}',
+        'I_SOU_TEAM_PRESENT': f'I_SOU_TEAM_PRESENT_{i}',
+        'I_SOU_CLICK_PRESENT': f'I_SOU_CLICK_PRESENT_{i}',
+        'I_SOU_SWITCH_SURE': f'I_SOU_SWITCH_SURE_{i}',
         # SwitchSoul 分组相关 (1-7组)
-        *[f'I_SOU_CHECK_GROUP_{i}' for i in range(1, 8)],
+        **{f'I_SOU_CHECK_GROUP_{g}': f'I_SOU_CHECK_GROUP_{g}_{i}' for g in range(1, 8)},
         # SwitchSoul 队伍相关 (1-4队)
-        *[f'I_SOU_SWITCH_{i}' for i in range(1, 5)],
+        **{f'I_SOU_SWITCH_{t}': f'I_SOU_SWITCH_{t}_{i}' for t in range(1, 5)},
         # SoulsTidy 相关
-        'I_ST_SOULS',
-        'I_ST_REPLACE',
-    ]
-    
-    shikigami_costume_model = {
-        getattr(ShikigamiType, f"COSTUME_SHIKIGAMI_{i}"): {
-            asset: f"{asset}_{i}" for asset in _shikigami_base_assets
-        }
-        for i in range(1, 2)  # 支持20种幕间皮肤
-        if hasattr(ShikigamiType, f"COSTUME_SHIKIGAMI_{i}")  # 确保类型存在
+        '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
+}
 
+class CostumeBase:
     def check_costume(self, config: CostumeConfig=None):
         if config is None:
             config: CostumeConfig = self.config.model.global_game.costume_config
@@ -142,7 +134,7 @@ class CostumeBase:
             return
         logger.info(f'Switch shikigami theme {shikigami_type}')
         shikigami_assets = CostumeShikigamiAssets()
-        model = self.shikigami_costume_model.get(shikigami_type, {})
+        model = shikigami_costume_model.get(shikigami_type, {})
         for key, value in model.items():
             if not hasattr(shikigami_assets, value):
                 # 尚未采集完成的资产,跳过

+ 4 - 3
tasks/Component/Costume/costume_test_shikigami.py

@@ -67,12 +67,12 @@ 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()
 
-    def set_costume(self, costume: ShikigamiType = ShikigamiType.COSTUME_SHIKIGAMI_1):
+    def set_costume(self, costume: ShikigamiType = ShikigamiType.COSTUME_SHIKIGAMI_DEFAULT):
         self.config.model.global_game.costume_config.costume_shikigami_type = costume
         self.check_costume()
         logger.info('Set shikigami costume to %s' % self.config.model.global_game.costume_config.costume_shikigami_type)
@@ -162,5 +162,6 @@ if __name__ == '__main__':
     c = Config('oas1')
     d = Device(c)
     t = ScriptTask(c, d)
-    t.set_costume(ShikigamiType.COSTUME_SHIKIGAMI_1)
+    t.set_costume(ShikigamiType.COSTUME_SHIKIGAMI_2)
+    # t.set_costume(ShikigamiType.COSTUME_SHIKIGAMI_DEFAULT)
     t.run()

+ 45 - 2
tasks/Component/CostumeShikigami/assets.py

@@ -47,9 +47,52 @@ class CostumeShikigamiAssets:
 	I_SOU_TEAM_PRESENT_1 = RuleImage(roi_front=(720,76,136,43), roi_back=(706,68,175,63), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk1/sk1_sou_team_present_1.png")
 	# 需要切换的预设按钮(颜色深一点) 
 	I_SOU_CLICK_PRESENT_1 = RuleImage(roi_front=(967,305,43,22), roi_back=(965,142,48,480), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk1/sk1_sou_click_present_1.png")
-	# 点击御魂 
-	I_ST_SOULS_1 = RuleImage(roi_front=(1184,232,70,80), roi_back=(1182,231,70,80), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk1/sk1_st_souls_1.png")
+	# 选中的御魂 
+	I_ST_SOULS_1 = RuleImage(roi_front=(1180,236,62,66), roi_back=(1176,230,70,80), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk1/sk1_st_souls_1.png")
 	# 更换 
 	I_ST_REPLACE_1 = RuleImage(roi_front=(856,170,100,100), roi_back=(856,170,100,100), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk1/sk1_st_replace_1.png")
 
 
+	# Image Rule Assets
+	# 用于判断在式神录 
+	I_CHECK_RECORDS_2 = RuleImage(roi_front=(267,76,51,46), roi_back=(265,74,55,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_check_records_2.png")
+	# 退出式神录 
+	I_RECORD_SOUL_BACK_2 = RuleImage(roi_front=(19,9,51,44), roi_back=(19,9,51,44), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_record_soul_back_2.png")
+	# 预设 
+	I_SOUL_PRESET_2 = RuleImage(roi_front=(335,73,90,51), roi_back=(310,57,169,72), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_soul_preset_2.png")
+	# 第一组切换 
+	I_SOU_SWITCH_1_2 = RuleImage(roi_front=(973,140,34,32), roi_back=(967,131,51,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_switch_1_2.png")
+	# 第二组切换 
+	I_SOU_SWITCH_2_2 = RuleImage(roi_front=(973,293,33,33), roi_back=(960,284,58,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_switch_2_2.png")
+	# description 
+	I_SOU_SWITCH_3_2 = RuleImage(roi_front=(968,448,41,38), roi_back=(962,442,52,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_switch_3_2.png")
+	# description 
+	I_SOU_SWITCH_4_2 = RuleImage(roi_front=(967,597,42,25), roi_back=(962,592,53,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_switch_4_2.png")
+	# description 
+	I_SOU_SWITCH_SURE_2 = RuleImage(roi_front=(668,401,180,61), roi_back=(668,401,180,61), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_switch_sure_2.png")
+	# 用于判断是否在式神录里面 
+	I_SOU_CHECK_IN_2 = RuleImage(roi_front=(268,74,50,49), roi_back=(268,74,50,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_check_in_2.png")
+	# 检查是否为第一组 
+	I_SOU_CHECK_GROUP_1_2 = RuleImage(roi_front=(1086,91,22,57), roi_back=(1086,91,22,57), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_1_2.png")
+	# description 
+	I_SOU_CHECK_GROUP_2_2 = RuleImage(roi_front=(1086,163,25,57), roi_back=(1086,163,25,57), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_2_2.png")
+	# description 
+	I_SOU_CHECK_GROUP_3_2 = RuleImage(roi_front=(1085,234,22,49), roi_back=(1085,234,22,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_3_2.png")
+	# description 
+	I_SOU_CHECK_GROUP_4_2 = RuleImage(roi_front=(1086,303,21,56), roi_back=(1086,303,21,56), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_4_2.png")
+	# description 
+	I_SOU_CHECK_GROUP_5_2 = RuleImage(roi_front=(1088,370,21,53), roi_back=(1088,370,21,53), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_5_2.png")
+	# description 
+	I_SOU_CHECK_GROUP_6_2 = RuleImage(roi_front=(1085,443,23,54), roi_back=(1085,443,23,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_6_2.png")
+	# description 
+	I_SOU_CHECK_GROUP_7_2 = RuleImage(roi_front=(1088,512,21,54), roi_back=(1088,512,21,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_check_group_7_2.png")
+	# 匹配队伍预设 
+	I_SOU_TEAM_PRESENT_2 = RuleImage(roi_front=(720,76,136,43), roi_back=(706,68,175,63), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_team_present_2.png")
+	# 需要切换的预设按钮(颜色深一点) 
+	I_SOU_CLICK_PRESENT_2 = RuleImage(roi_front=(967,305,43,22), roi_back=(965,142,48,480), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_sou_click_present_2.png")
+	# 点击御魂 
+	I_ST_SOULS_2 = RuleImage(roi_front=(1176,227,70,80), roi_back=(1181,234,58,69), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk2/sk2_st_souls_2.png")
+	# 更换 
+	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")
+
+

+ 3 - 3
tasks/Component/CostumeShikigami/sk1/image.json

@@ -164,11 +164,11 @@
   {
     "itemName": "st_souls_1",
     "imageName": "sk1_st_souls_1.png",
-    "roiFront": "1184,232,70,80",
-    "roiBack": "1182,231,70,80",
+    "roiFront": "1180,236,62,66",
+    "roiBack": "1176,230,70,80",
     "method": "Template matching",
     "threshold": 0.8,
-    "description": "点击御魂"
+    "description": "选中的御魂"
   },
   {
     "itemName": "st_replace_1",

BIN
tasks/Component/CostumeShikigami/sk1/sk1_st_souls_1.png


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

@@ -0,0 +1,182 @@
+[
+  {
+    "itemName": "check_records_2",
+    "imageName": "sk2_check_records_2.png",
+    "roiFront": "267,76,51,46",
+    "roiBack": "265,74,55,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断在式神录"
+  },
+  {
+    "itemName": "record_soul_back_2",
+    "imageName": "sk2_record_soul_back_2.png",
+    "roiFront": "19,9,51,44",
+    "roiBack": "19,9,51,44",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "退出式神录"
+  },
+  {
+    "itemName": "soul_preset_2",
+    "imageName": "sk2_soul_preset_2.png",
+    "roiFront": "335,73,90,51",
+    "roiBack": "310,57,169,72",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "预设"
+  },
+  {
+    "itemName": "sou_switch_1_2",
+    "imageName": "sk2_sou_switch_1_2.png",
+    "roiFront": "973,140,34,32",
+    "roiBack": "967,131,51,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第一组切换"
+  },
+  {
+    "itemName": "sou_switch_2_2",
+    "imageName": "sk2_sou_switch_2_2.png",
+    "roiFront": "973,293,33,33",
+    "roiBack": "960,284,58,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第二组切换"
+  },
+  {
+    "itemName": "sou_switch_3_2",
+    "imageName": "sk2_sou_switch_3_2.png",
+    "roiFront": "968,448,41,38",
+    "roiBack": "962,442,52,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_4_2",
+    "imageName": "sk2_sou_switch_4_2.png",
+    "roiFront": "967,597,42,25",
+    "roiBack": "962,592,53,34",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_sure_2",
+    "imageName": "sk2_sou_switch_sure_2.png",
+    "roiFront": "668,401,180,61",
+    "roiBack": "668,401,180,61",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_in_2",
+    "imageName": "sk2_sou_check_in_2.png",
+    "roiFront": "268,74,50,49",
+    "roiBack": "268,74,50,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断是否在式神录里面"
+  },
+  {
+    "itemName": "sou_check_group_1_2",
+    "imageName": "sk2_sou_check_group_1_2.png",
+    "roiFront": "1086,91,22,57",
+    "roiBack": "1086,91,22,57",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "检查是否为第一组"
+  },
+  {
+    "itemName": "sou_check_group_2_2",
+    "imageName": "sk2_sou_check_group_2_2.png",
+    "roiFront": "1086,163,25,57",
+    "roiBack": "1086,163,25,57",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_3_2",
+    "imageName": "sk2_sou_check_group_3_2.png",
+    "roiFront": "1085,234,22,49",
+    "roiBack": "1085,234,22,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_4_2",
+    "imageName": "sk2_sou_check_group_4_2.png",
+    "roiFront": "1086,303,21,56",
+    "roiBack": "1086,303,21,56",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_5_2",
+    "imageName": "sk2_sou_check_group_5_2.png",
+    "roiFront": "1088,370,21,53",
+    "roiBack": "1088,370,21,53",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_6_2",
+    "imageName": "sk2_sou_check_group_6_2.png",
+    "roiFront": "1085,443,23,54",
+    "roiBack": "1085,443,23,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_7_2",
+    "imageName": "sk2_sou_check_group_7_2.png",
+    "roiFront": "1088,512,21,54",
+    "roiBack": "1088,512,21,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_team_present_2",
+    "imageName": "sk2_sou_team_present_2.png",
+    "roiFront": "720,76,136,43",
+    "roiBack": "706,68,175,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "匹配队伍预设"
+  },
+  {
+    "itemName": "sou_click_present_2",
+    "imageName": "sk2_sou_click_present_2.png",
+    "roiFront": "967,305,43,22",
+    "roiBack": "965,142,48,480",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "需要切换的预设按钮(颜色深一点)"
+  },
+  {
+    "itemName": "st_souls_2",
+    "imageName": "sk2_st_souls_2.png",
+    "roiFront": "1176,227,70,80",
+    "roiBack": "1181,234,58,69",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "点击御魂"
+  },
+  {
+    "itemName": "st_replace_2",
+    "imageName": "sk2_st_replace_2.png",
+    "roiFront": "861,150,100,100",
+    "roiBack": "872,169,78,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "更换"
+  }
+]

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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