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

feat(costume main): Add '暖池青苑' #182

huangrunheng 2 лет назад
Родитель
Сommit
1854dd249f

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

@@ -75,3 +75,16 @@ class CostumeAssets:
 	I_PET_HOUSE_5 = RuleImage(roi_front=(1135,533,29,40), roi_back=(1008,512,241,73), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main5/main5_pet_house_5.png")
 
 
+	# Image Rule Assets
+	# description 
+	I_CHECK_MAIN_6 = RuleImage(roi_front=(760,119,240,66), roi_back=(149,108,1068,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main6/main6_check_main_6.png")
+	# description 
+	I_MAIN_GOTO_EXPLORATION_6 = RuleImage(roi_front=(535,150,46,79), roi_back=(237,136,904,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main6/main6_main_goto_exploration_6.png")
+	#  
+	I_MAIN_GOTO_SUMMON_6 = RuleImage(roi_front=(1123,250,43,62), roi_back=(601,232,669,100), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main6/main6_main_goto_summon_6.png")
+	# description 
+	I_MAIN_GOTO_TOWN_6 = RuleImage(roi_front=(535,378,60,61), roi_back=(313,365,666,82), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main6/main6_main_goto_town_6.png")
+	# description 
+	I_PET_HOUSE_6 = RuleImage(roi_front=(1101,516,29,40), roi_back=(987,497,241,73), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main6/main6_pet_house_6.png")
+
+

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

@@ -11,6 +11,7 @@ class MainType(str, Enum):
     COSTUME_MAIN_3 = 'costume_main_3'  # 烬夜韶阁
     COSTUME_MAIN_4 = 'costume_main_4'  # 笔墨山河
     COSTUME_MAIN_5 = 'costume_main_5'  # 枫色秋庭
+    COSTUME_MAIN_6 = 'costume_main_6'  # 枫色秋庭
 
 
 class CostumeConfig(BaseModel):

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

@@ -33,6 +33,11 @@ main_costume_model = {
                               'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_5',
                               'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_5',
                               'I_PET_HOUSE': 'I_PET_HOUSE_5', },
+    MainType.COSTUME_MAIN_6: {'I_CHECK_MAIN': 'I_CHECK_MAIN_6',
+                              'I_MAIN_GOTO_EXPLORATION': 'I_MAIN_GOTO_EXPLORATION_6',
+                              'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_6',
+                              'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_6',
+                              'I_PET_HOUSE': 'I_PET_HOUSE_6', },
 }
 
 

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

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_6",
+    "imageName": "main6_check_main_6.png",
+    "roiFront": "760,119,240,66",
+    "roiBack": "149,108,1068,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_exploration_6",
+    "imageName": "main6_main_goto_exploration_6.png",
+    "roiFront": "535,150,46,79",
+    "roiBack": "237,136,904,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_summon_6",
+    "imageName": "main6_main_goto_summon_6.png",
+    "roiFront": "1123,250,43,62",
+    "roiBack": "601,232,669,100",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": ""
+  },
+  {
+    "itemName": "main_goto_town_6",
+    "imageName": "main6_main_goto_town_6.png",
+    "roiFront": "535,378,60,61",
+    "roiBack": "313,365,666,82",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "pet_house_6",
+    "imageName": "main6_pet_house_6.png",
+    "roiFront": "1101,516,29,40",
+    "roiBack": "987,497,241,73",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  }
+]

BIN
tasks/Component/Costume/main6/main6_check_main_6.png


BIN
tasks/Component/Costume/main6/main6_main_goto_exploration_6.png


BIN
tasks/Component/Costume/main6/main6_main_goto_summon_6.png


BIN
tasks/Component/Costume/main6/main6_main_goto_town_6.png


BIN
tasks/Component/Costume/main6/main6_pet_house_6.png