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

feat(costume main): Add '枫色秋庭' #182

huangrunheng 2 лет назад
Родитель
Сommit
632b1c41b3

+ 5 - 5
tasks/Component/Costume/assets.py

@@ -64,14 +64,14 @@ class CostumeAssets:
 
 	# 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")
+	I_CHECK_MAIN_5 = RuleImage(roi_front=(760,119,240,55), roi_back=(149,108,1068,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main5/main5_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_EXPLORATION_5 = RuleImage(roi_front=(633,107,46,79), roi_back=(278,101,847,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main5/main5_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")
+	I_MAIN_GOTO_SUMMON_5 = RuleImage(roi_front=(1072,171,58,62), roi_back=(532,151,659,100), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main5/main5_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")
+	I_MAIN_GOTO_TOWN_5 = RuleImage(roi_front=(871,281,60,51), roi_back=(524,261,555,82), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main5/main5_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")
+	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")
 
 

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

@@ -28,6 +28,11 @@ main_costume_model = {
                               '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', },
+    MainType.COSTUME_MAIN_5: {'I_CHECK_MAIN': 'I_CHECK_MAIN_5',
+                              'I_MAIN_GOTO_EXPLORATION': 'I_MAIN_GOTO_EXPLORATION_5',
+                              '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', },
 }
 
 

+ 10 - 10
tasks/Component/Costume/main5/image.json

@@ -2,7 +2,7 @@
   {
     "itemName": "check_main_5",
     "imageName": "main5_check_main_5.png",
-    "roiFront": "513,139,48,55",
+    "roiFront": "760,119,240,55",
     "roiBack": "149,108,1068,100",
     "method": "Template matching",
     "threshold": 0.8,
@@ -11,8 +11,8 @@
   {
     "itemName": "main_goto_exploration_5",
     "imageName": "main5_main_goto_exploration_5.png",
-    "roiFront": "434,233,43,56",
-    "roiBack": "148,201,847,100",
+    "roiFront": "633,107,46,79",
+    "roiBack": "278,101,847,100",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"
@@ -20,17 +20,17 @@
   {
     "itemName": "main_goto_summon_5",
     "imageName": "main5_main_goto_summon_5.png",
-    "roiFront": "959,215,41,62",
-    "roiBack": "556,187,659,100",
+    "roiFront": "1072,171,58,62",
+    "roiBack": "532,151,659,100",
     "method": "Template matching",
-    "threshold": 0.8,
+    "threshold": 0.7,
     "description": ""
   },
   {
     "itemName": "main_goto_town_5",
     "imageName": "main5_main_goto_town_5.png",
-    "roiFront": "814,242,47,60",
-    "roiBack": "524,228,555,82",
+    "roiFront": "871,281,60,51",
+    "roiBack": "524,261,555,82",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"
@@ -38,8 +38,8 @@
   {
     "itemName": "pet_house_5",
     "imageName": "main5_pet_house_5.png",
-    "roiFront": "977,387,29,40",
-    "roiBack": "922,371,241,73",
+    "roiFront": "1135,533,29,40",
+    "roiBack": "1008,512,241,73",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"

BIN
tasks/Component/Costume/main5/main5_check_main_5.png


BIN
tasks/Component/Costume/main5/main5_main_goto_exploration_5.png


BIN
tasks/Component/Costume/main5/main5_main_goto_summon_5.png


BIN
tasks/Component/Costume/main5/main5_main_goto_town_5.png


BIN
tasks/Component/Costume/main5/main5_pet_house_5.png