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

fix(RyouToppa): Lower the image matching threshold of GOTO_RyouToppa

huangrunheng 2 лет назад
Родитель
Сommit
711e1a2b38
4 измененных файлов с 5 добавлено и 10 удалено
  1. 0 5
      tasks/Dokan/assets.py
  2. 2 2
      tasks/Hunt/assets.py
  3. 1 1
      tasks/RyouToppa/assets.py
  4. 2 2
      tasks/RyouToppa/res/image.json

+ 0 - 5
tasks/Dokan/assets.py

@@ -101,8 +101,3 @@ class DokanAssets:
 	O_DOKAN_SUCCEEDED = RuleOcr(roi=(1122,546,92,51), area=(1122,546,92,51), mode="Full", method="Default", keyword="关闭", name="dokan_succeeded")
 
 
-	# Click Rule Assets
-	# 选择第一个寮 
-	C_SELECT_FIRST_RYOU = RuleClick(roi_front=(1148,138,21,22), roi_back=(1148,138,21,22), name="select_first_ryou")
-
-

+ 2 - 2
tasks/Hunt/assets.py

@@ -12,7 +12,7 @@ class HuntAssets:
 
 	# Click Rule Assets
 	# description 
-	C_HUNT_ENTER = RuleClick(roi_front=(1059,600,193,100), roi_back=(1059,600,193,100), name="hunt_enter")
+	C_HUNT_ENTER = RuleClick(roi_front=(1090,597,94,59), roi_back=(1090,597,94,59), name="hunt_enter")
 
 
 	# Image Rule Assets
@@ -24,7 +24,7 @@ class HuntAssets:
 
 	# Image Rule Assets
 	# 麒麟的挑战 
-	I_KIRIN_CHALLAGE = RuleImage(roi_front=(1090,597,94,59), roi_back=(1090,597,94,59), threshold=0.8, method="Template matching", file="./tasks/Hunt/kirin/kirin_kirin_challage.png")
+	I_KIRIN_CHALLAGE = RuleImage(roi_front=(1064,559,117,108), roi_back=(1064,559,117,108), threshold=0.8, method="Template matching", file="./tasks/Hunt/kirin/kirin_kirin_challage.png")
 	# 集合 
 	I_KIRIN_GATHER = RuleImage(roi_front=(28,480,75,64), roi_back=(28,480,75,64), threshold=0.8, method="Template matching", file="./tasks/Hunt/kirin/kirin_kirin_gather.png")
 	# 已结束 

+ 1 - 1
tasks/RyouToppa/assets.py

@@ -117,7 +117,7 @@ class RyouToppaAssets:
 
 	# Image Rule Assets
 	# 寮突 
-	I_RYOU_TOPPA = RuleImage(roi_front=(1191,352,78,116), roi_back=(1191,352,78,116), threshold=0.8, method="Template matching", file="./tasks/RyouToppa/res/res_ryou_toppa.png")
+	I_RYOU_TOPPA = RuleImage(roi_front=(1191,352,78,116), roi_back=(1141,322,118,136), threshold=0.6, method="Template matching", file="./tasks/RyouToppa/res/res_ryou_toppa.png")
 	# 寮突选择阴阳寮按钮 
 	I_SELECT_RYOU_BUTTON = RuleImage(roi_front=(560,577,156,46), roi_back=(560,577,156,46), threshold=0.8, method="Template matching", file="./tasks/RyouToppa/res/res_select_ryou_button.png")
 	# 开始寮突按钮 

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

@@ -3,9 +3,9 @@
     "itemName": "ryou_toppa",
     "imageName": "res_ryou_toppa.png",
     "roiFront": "1191,352,78,116",
-    "roiBack": "1191,352,78,116",
+    "roiBack": "1141,322,118,136",
     "method": "Template matching",
-    "threshold": 0.8,
+    "threshold": 0.6,
     "description": "寮突"
   },
   {