Przeglądaj źródła

fix(GameUi): adapt summon house detection for various themes

Update I_CHECK_SUMMON to support both new and old summon house themes
by adjusting search region and replacing detection image
lhye 9 miesięcy temu
rodzic
commit
14d0bc6311

+ 1 - 1
tasks/GameUi/assets.py

@@ -196,7 +196,7 @@ class GameUiAssets:
 	# description 
 	I_SUMMON_GOTO_MAIN = RuleImage(roi_front=(27,5,49,51), roi_back=(0,0,100,100), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_summon_goto_main.png")
 	# description 
-	I_CHECK_SUMMON = RuleImage(roi_front=(581,594,68,66), roi_back=(316,528,594,174), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_summon.png")
+	I_CHECK_SUMMON = RuleImage(roi_front=(750,580,30,28), roi_back=(750,580,350,120), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_summon.png")
 	# 就是一个红叉 
 	I_REALM_RAID_GOTO_EXPLORATION = RuleImage(roi_front=(1192,107,36,43), roi_back=(1192,107,36,43), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_realm_raid_goto_exploration.png")
 	# description 

BIN
tasks/GameUi/page/page_check_summon.png


+ 2 - 2
tasks/GameUi/page/page_img_supplement.json

@@ -20,8 +20,8 @@
   {
     "itemName": "check_summon",
     "imageName": "page_check_summon.png",
-    "roiFront": "581,594,68,66",
-    "roiBack": "316,528,594,174",
+    "roiFront": "750,580,30,28",
+    "roiBack": "750,580,350,120",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"