Explorar o código

feat(costume main): Add '笔墨山河' #182

huangrunheng %!s(int64=2) %!d(string=hai) anos
pai
achega
6eaffa22b7

+ 26 - 0
tasks/Component/Costume/assets.py

@@ -49,3 +49,29 @@ class CostumeAssets:
 	I_PET_HOUSE_3 = RuleImage(roi_front=(1136,423,29,40), roi_back=(1038,409,241,73), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main3/main3_pet_house_3.png")
 
 
+	# Image Rule Assets
+	# description 
+	I_CHECK_MAIN_4 = RuleImage(roi_front=(513,139,48,55), roi_back=(149,108,1068,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main4/main4_check_main_4.png")
+	# description 
+	I_MAIN_GOTO_EXPLORATION_4 = RuleImage(roi_front=(434,233,43,56), roi_back=(148,201,847,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main4/main4_main_goto_exploration_4.png")
+	#  
+	I_MAIN_GOTO_SUMMON_4 = RuleImage(roi_front=(959,215,41,62), roi_back=(556,187,659,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main4/main4_main_goto_summon_4.png")
+	# description 
+	I_MAIN_GOTO_TOWN_4 = RuleImage(roi_front=(814,242,47,60), roi_back=(524,228,555,82), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main4/main4_main_goto_town_4.png")
+	# description 
+	I_PET_HOUSE_4 = RuleImage(roi_front=(977,387,29,40), roi_back=(922,371,241,73), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main4/main4_pet_house_4.png")
+
+
+	# Image Rule Assets
+	# description 
+	I_CHECK_MAIN_5 = RuleImage(roi_front=(513,139,48,55), roi_back=(149,108,1068,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main5/main4_check_main_5.png")
+	# description 
+	I_MAIN_GOTO_EXPLORATION_5 = RuleImage(roi_front=(434,233,43,56), roi_back=(148,201,847,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main5/main4_main_goto_exploration_5.png")
+	#  
+	I_MAIN_GOTO_SUMMON_5 = RuleImage(roi_front=(959,215,41,62), roi_back=(556,187,659,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main5/main4_main_goto_summon_5.png")
+	# description 
+	I_MAIN_GOTO_TOWN_5 = RuleImage(roi_front=(814,242,47,60), roi_back=(524,228,555,82), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main5/main4_main_goto_town_5.png")
+	# description 
+	I_PET_HOUSE_5 = RuleImage(roi_front=(977,387,29,40), roi_back=(922,371,241,73), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main5/main3_pet_house_5.png")
+
+

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

@@ -9,6 +9,8 @@ class MainType(str, Enum):
     COSTUME_MAIN_1 = 'costume_main_1'  # 织梦莲庭
     COSTUME_MAIN_2 = 'costume_main_2'  # 琼夜淬光
     COSTUME_MAIN_3 = 'costume_main_3'  # 烬夜韶阁
+    COSTUME_MAIN_4 = 'costume_main_4'  # 笔墨山河
+    COSTUME_MAIN_5 = 'costume_main_5'  # 枫色秋庭
 
 
 class CostumeConfig(BaseModel):

+ 5 - 0
tasks/Component/Costume/costume_base.py

@@ -23,6 +23,11 @@ main_costume_model = {
                               'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_3',
                               'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_3',
                               'I_PET_HOUSE': 'I_PET_HOUSE_3', },
+    MainType.COSTUME_MAIN_4: {'I_CHECK_MAIN': 'I_CHECK_MAIN_4',
+                              'I_MAIN_GOTO_EXPLORATION': 'I_MAIN_GOTO_EXPLORATION_4',
+                              'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_4',
+                              'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_4',
+                              'I_PET_HOUSE': 'I_PET_HOUSE_4', },
 }
 
 

+ 0 - 0
tasks/Component/Costume/main3/main2_check_main_3.png → tasks/Component/Costume/main3/main3_check_main_3.png


+ 0 - 0
tasks/Component/Costume/main3/main2_main_goto_exploration_3.png → tasks/Component/Costume/main3/main3_main_goto_exploration_3.png


+ 0 - 0
tasks/Component/Costume/main3/main2_main_goto_summon_3.png → tasks/Component/Costume/main3/main3_main_goto_summon_3.png


+ 0 - 0
tasks/Component/Costume/main3/main2_main_goto_town_3.png → tasks/Component/Costume/main3/main3_main_goto_town_3.png


+ 0 - 0
tasks/Component/Costume/main3/main2_pet_house_3.png → tasks/Component/Costume/main3/main3_pet_house_3.png


+ 47 - 0
tasks/Component/Costume/main4/image.json

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_4",
+    "imageName": "main4_check_main_4.png",
+    "roiFront": "513,139,48,55",
+    "roiBack": "149,108,1068,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_exploration_4",
+    "imageName": "main4_main_goto_exploration_4.png",
+    "roiFront": "434,233,43,56",
+    "roiBack": "148,201,847,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_summon_4",
+    "imageName": "main4_main_goto_summon_4.png",
+    "roiFront": "959,215,41,62",
+    "roiBack": "556,187,659,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": ""
+  },
+  {
+    "itemName": "main_goto_town_4",
+    "imageName": "main4_main_goto_town_4.png",
+    "roiFront": "814,242,47,60",
+    "roiBack": "524,228,555,82",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "pet_house_4",
+    "imageName": "main4_pet_house_4.png",
+    "roiFront": "977,387,29,40",
+    "roiBack": "922,371,241,73",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  }
+]

BIN=BIN
tasks/Component/Costume/main4/main4_check_main_4.png


BIN=BIN
tasks/Component/Costume/main4/main4_main_goto_exploration_4.png


BIN=BIN
tasks/Component/Costume/main4/main4_main_goto_summon_4.png


BIN=BIN
tasks/Component/Costume/main4/main4_main_goto_town_4.png


BIN=BIN
tasks/Component/Costume/main4/main4_pet_house_4.png


+ 47 - 0
tasks/Component/Costume/main5/image.json

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_5",
+    "imageName": "main5_check_main_5.png",
+    "roiFront": "513,139,48,55",
+    "roiBack": "149,108,1068,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_exploration_5",
+    "imageName": "main5_main_goto_exploration_5.png",
+    "roiFront": "434,233,43,56",
+    "roiBack": "148,201,847,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_summon_5",
+    "imageName": "main5_main_goto_summon_5.png",
+    "roiFront": "959,215,41,62",
+    "roiBack": "556,187,659,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": ""
+  },
+  {
+    "itemName": "main_goto_town_5",
+    "imageName": "main5_main_goto_town_5.png",
+    "roiFront": "814,242,47,60",
+    "roiBack": "524,228,555,82",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "pet_house_5",
+    "imageName": "main5_pet_house_5.png",
+    "roiFront": "977,387,29,40",
+    "roiBack": "922,371,241,73",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  }
+]