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

fix(RealmRaid): #980 Update check image roi to match the new image

ryland 1 год назад
Родитель
Сommit
4bc0619753
3 измененных файлов с 6 добавлено и 7 удалено
  1. 0 2
      tasks/Duel/script_task.py
  2. 1 1
      tasks/GameUi/assets.py
  3. 5 4
      tasks/GameUi/page/page_img.json

+ 0 - 2
tasks/Duel/script_task.py

@@ -221,8 +221,6 @@ class ScriptTask(GameUi, GeneralBattle, DuelAssets):
                 logger.warning('Duel battle stuck, swipe')
                 self.device.stuck_record_clear()
                 self.device.stuck_record_add('BATTLE_STATUS_S')
-
-
         return battle_win
 
 

+ 1 - 1
tasks/GameUi/assets.py

@@ -65,7 +65,7 @@ class GameUiAssets:
 	# description 
 	I_CHECK_SOUL_ZONES = RuleImage(roi_front=(49,105,298,405), roi_back=(49,105,298,405), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_soul_zones.png")
 	# description 
-	I_CHECK_REALM_RAID = RuleImage(roi_front=(113,625,86,77), roi_back=(113,625,86,77), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_realm_raid.png")
+	I_CHECK_REALM_RAID = RuleImage(roi_front=(112,593,86,77), roi_back=(66,526,233,173), threshold=0.7, method="Template matching", file="./tasks/GameUi/page/page_check_realm_raid.png")
 	# description 
 	I_CHECK_GORYOU = RuleImage(roi_front=(881,17,30,39), roi_back=(881,17,30,39), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_goryou.png")
 	# description 

+ 5 - 4
tasks/GameUi/page/page_img.json

@@ -16,7 +16,8 @@
     "method": "Template matching",
     "threshold": 0.8,
     "description": "庭院卷轴关闭标识"
-  },  {
+  },
+  {
     "itemName": "main_goto_exploration",
     "imageName": "page_main_goto_exploration.png",
     "roiFront": "493,116,45,75",
@@ -154,10 +155,10 @@
   {
     "itemName": "check_realm_raid",
     "imageName": "page_check_realm_raid.png",
-    "roiFront": "113,625,86,77",
-    "roiBack": "113,625,86,77",
+    "roiFront": "112,593,86,77",
+    "roiBack": "66,526,233,173",
     "method": "Template matching",
-    "threshold": 0.8,
+    "threshold": 0.7,
     "description": "description"
   },
   {