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

feat(costume main): Add '远海航船' #182

huangrunheng 2 лет назад
Родитель
Сommit
796c7cbc3f

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

@@ -101,3 +101,16 @@ class CostumeAssets:
 	I_PET_HOUSE_7 = RuleImage(roi_front=(1163,468,50,40), roi_back=(1033,444,241,73), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main7/main7_pet_house_7.png")
 
 
+	# Image Rule Assets
+	# description 
+	I_CHECK_MAIN_8 = RuleImage(roi_front=(843,116,240,64), roi_back=(149,108,1088,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main8/main8_check_main_8.png")
+	# description 
+	I_MAIN_GOTO_EXPLORATION_8 = RuleImage(roi_front=(665,141,59,61), roi_back=(239,125,904,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main8/main8_main_goto_exploration_8.png")
+	#  
+	I_MAIN_GOTO_SUMMON_8 = RuleImage(roi_front=(1236,212,39,62), roi_back=(1085,192,194,119), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main8/main8_main_goto_summon_8.png")
+	# description 
+	I_MAIN_GOTO_TOWN_8 = RuleImage(roi_front=(671,434,56,51), roi_back=(308,409,888,82), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main8/main8_main_goto_town_8.png")
+	# description 
+	I_PET_HOUSE_8 = RuleImage(roi_front=(1110,499,50,40), roi_back=(1033,469,241,83), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main8/main8_pet_house_8.png")
+
+

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

@@ -13,6 +13,7 @@ class MainType(str, Enum):
     COSTUME_MAIN_5 = 'costume_main_5'  # 枫色秋庭
     COSTUME_MAIN_6 = 'costume_main_6'  # 暖池青苑
     COSTUME_MAIN_7 = 'costume_main_7'  # 盛夏幽庭
+    COSTUME_MAIN_8 = 'costume_main_8'  # 远海航船
 
 
 class CostumeConfig(BaseModel):

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

@@ -43,6 +43,11 @@ main_costume_model = {
                               'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_7',
                               'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_7',
                               'I_PET_HOUSE': 'I_PET_HOUSE_7', },
+    MainType.COSTUME_MAIN_8: {'I_CHECK_MAIN': 'I_CHECK_MAIN_8',
+                              'I_MAIN_GOTO_EXPLORATION': 'I_MAIN_GOTO_EXPLORATION_8',
+                              'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_8',
+                              'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_8',
+                              'I_PET_HOUSE': 'I_PET_HOUSE_8', },
 }
 
 

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

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_8",
+    "imageName": "main8_check_main_8.png",
+    "roiFront": "843,116,240,64",
+    "roiBack": "149,108,1088,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_exploration_8",
+    "imageName": "main8_main_goto_exploration_8.png",
+    "roiFront": "665,141,59,61",
+    "roiBack": "239,125,904,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_summon_8",
+    "imageName": "main8_main_goto_summon_8.png",
+    "roiFront": "1236,212,39,62",
+    "roiBack": "1085,192,194,119",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": ""
+  },
+  {
+    "itemName": "main_goto_town_8",
+    "imageName": "main8_main_goto_town_8.png",
+    "roiFront": "671,434,56,51",
+    "roiBack": "308,409,888,82",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "pet_house_8",
+    "imageName": "main8_pet_house_8.png",
+    "roiFront": "1110,499,50,40",
+    "roiBack": "1033,469,241,83",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  }
+]

BIN
tasks/Component/Costume/main8/main8_check_main_8.png


BIN
tasks/Component/Costume/main8/main8_main_goto_exploration_8.png


BIN
tasks/Component/Costume/main8/main8_main_goto_summon_8.png


BIN
tasks/Component/Costume/main8/main8_main_goto_town_8.png


BIN
tasks/Component/Costume/main8/main8_pet_house_8.png