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

fix(Exploration): Adjust treasure box image recognition ROI and threshold #1601

ryland 5 месяцев назад
Родитель
Сommit
c303ec1747

+ 1 - 1
tasks/Exploration/assets.py

@@ -110,7 +110,7 @@ class ExplorationAssets:
 	# description 
 	I_E_EXIT_CONFIRM = RuleImage(roi_front=(694,380,163,49), roi_back=(694,380,163,49), threshold=0.8, method="Template matching", file="./tasks/Exploration/res/res_e_exit_confirm.png")
 	# 宝箱 
-	I_TREASURE_BOX_CLICK = RuleImage(roi_front=(33,476,70,49), roi_back=(2,130,135,406), threshold=0.7, method="Template matching", file="./tasks/Exploration/res/res_treasure_box_click.png")
+	I_TREASURE_BOX_CLICK = RuleImage(roi_front=(34,386,47,37), roi_back=(2,130,135,406), threshold=0.65, method="Template matching", file="./tasks/Exploration/res/res_treasure_box_click.png")
 	# 困28滚动到最后 
 	I_SWIPE_END = RuleImage(roi_front=(994,234,119,100), roi_back=(968,196,311,165), threshold=0.8, method="Template matching", file="./tasks/Exploration/res/res_swipe_end.png")
 	# 队伍的表情标志 

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

@@ -173,10 +173,10 @@
   {
     "itemName": "treasure_box_click",
     "imageName": "res_treasure_box_click.png",
-    "roiFront": "33,476,70,49",
+    "roiFront": "34,386,47,37",
     "roiBack": "2,130,135,406",
     "method": "Template matching",
-    "threshold": 0.7,
+    "threshold": 0.65,
     "description": "宝箱"
   },
   {

BIN
tasks/Exploration/res/res_treasure_box_click.png