Quellcode durchsuchen

fix(GameUi): Adjust image recognition parameters for high-resolution font

Neptine vor 5 Monaten
Ursprung
Commit
dec23f2bb2

+ 1 - 1
tasks/GameUi/assets.py

@@ -221,7 +221,7 @@ class GameUiAssets:
 	# 英杰试炼左上角标志 
 	I_CHECK_HERO_TEST = RuleImage(roi_front=(148,10,133,48), roi_back=(137,0,157,71), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_hero_test.png")
 	# 探索前往英杰试炼 
-	I_EXPLORATION_GOTO_HERO_TEST = RuleImage(roi_front=(837,630,58,56), roi_back=(7,605,1272,113), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_exploration_goto_hero_test.png")
+	I_EXPLORATION_GOTO_HERO_TEST = RuleImage(roi_front=(838,635,38,43), roi_back=(7,605,1272,113), threshold=0.65, method="Template matching", file="./tasks/GameUi/page/page_exploration_goto_hero_test.png")
 
 
 	# Image Rule Assets

BIN
tasks/GameUi/page/page_exploration_goto_hero_test.png


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

@@ -83,10 +83,10 @@
   {
     "itemName": "exploration_goto_hero_test",
     "imageName": "page_exploration_goto_hero_test.png",
-    "roiFront": "837,630,58,56",
+    "roiFront": "838,635,38,43",
     "roiBack": "7,605,1272,113",
     "method": "Template matching",
-    "threshold": 0.8,
+    "threshold": 0.65,
     "description": "探索前往英杰试炼"
   }
 ]

+ 1 - 1
tasks/HeroTest/script_task.py

@@ -302,4 +302,4 @@ if __name__ == "__main__":
     d = Device(c)
     t = ScriptTask(c, d)
 
-    t.check_and_lock_team()
+    t.run()

+ 1 - 1
tasks/RyouToppa/assets.py

@@ -127,7 +127,7 @@ class RyouToppaAssets:
 	# 寮击破奖励 
 	I_RYOU_REWARD = RuleImage(roi_front=(134,417,241,40), roi_back=(122,390,340,84), threshold=0.65, method="Template matching", file="./tasks/RyouToppa/res/res_ryou_reward.png")
 	# 勋章奖励标题 
-	I_GUILD_ORDERS_REWARDS = RuleImage(roi_front=(1123,31,115,56), roi_back=(1123,31,115,56), threshold=0.8, method="Template matching", file="./tasks/RyouToppa/res/res_guild_orders_rewards.png")
+	I_GUILD_ORDERS_REWARDS = RuleImage(roi_front=(1123,31,115,56), roi_back=(1123,31,115,56), threshold=0.7, method="Template matching", file="./tasks/RyouToppa/res/res_guild_orders_rewards.png")
 	# 攻破阴阳寮 
 	I_SUCCESS_PENETRATION = RuleImage(roi_front=(141,374,234,37), roi_back=(141,374,234,37), threshold=0.8, method="Template matching", file="./tasks/RyouToppa/res/res_success_penetration.png")
 	# 个人突破刷新按钮 

+ 1 - 1
tasks/RyouToppa/res/image.json

@@ -50,7 +50,7 @@
     "roiFront": "1123,31,115,56",
     "roiBack": "1123,31,115,56",
     "method": "Template matching",
-    "threshold": 0.8,
+    "threshold": 0.7,
     "description": "勋章奖励标题"
   },
   {