Ver Fonte

fix(Exploration): Lower the threshold for image matching due to the new fonts #1310

ryland há 11 meses atrás
pai
commit
e426049788
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      tasks/Exploration/assets.py
  2. 1 1
      tasks/Exploration/res/image.json

+ 1 - 1
tasks/Exploration/assets.py

@@ -92,7 +92,7 @@ class ExplorationAssets:
 	# 确定按钮 
 	I_E_SURE_BUTTON = RuleImage(roi_front=(1131,425,43,37), roi_back=(1077,367,165,152), threshold=0.65, method="Template matching", file="./tasks/Exploration/res/res_e_sure_button.png")
 	# 设置按钮 
-	I_E_SETTINGS_BUTTON = RuleImage(roi_front=(37,692,53,26), roi_back=(37,692,53,26), threshold=0.8, method="Template matching", file="./tasks/Exploration/res/res_e_settings_button.png")
+	I_E_SETTINGS_BUTTON = RuleImage(roi_front=(37,692,53,26), roi_back=(37,692,53,26), threshold=0.65, method="Template matching", file="./tasks/Exploration/res/res_e_settings_button.png")
 	# 普通怪 
 	I_NORMAL_BATTLE_BUTTON = RuleImage(roi_front=(636,263,42,39), roi_back=(0,0,1279,719), threshold=0.8, method="Template matching", file="./tasks/Exploration/res/res_normal_battle_button.png")
 	# boss 

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

@@ -95,7 +95,7 @@
     "roiFront": "37,692,53,26",
     "roiBack": "37,692,53,26",
     "method": "Template matching",
-    "threshold": 0.8,
+    "threshold": 0.65,
     "description": "设置按钮"
   },
   {