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

fix(GlobalGame): 适配接受/拒绝按钮新 UI

- 重新提取通用接受/拒绝按钮模板并调整识别区,匹配游戏新版本界面
User 2 недель назад
Родитель
Сommit
e68c2d26f1

+ 6 - 6
tasks/GlobalGame/assets.py

@@ -12,17 +12,17 @@ class GlobalGameAssets:
 
 	# Image Rule Assets
 	# 接受 
-	I_G_ACCEPT = RuleImage(roi_front=(830,407,56,46), roi_back=(798,369,117,110), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_accept.png")
+	I_G_ACCEPT = RuleImage(roi_front=(846,471,56,46), roi_back=(810,448,120,192), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_accept.png")
 	# 拒绝 
-	I_G_REJECT = RuleImage(roi_front=(832,508,53,51), roi_back=(808,480,108,101), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_reject.png")
+	I_G_REJECT = RuleImage(roi_front=(846,561,53,51), roi_back=(826,458,99,172), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_reject.png")
 	# 勾玉 
-	I_G_JADE = RuleImage(roi_front=(661,466,43,46), roi_back=(661,466,43,46), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_jade.png")
+	I_G_JADE = RuleImage(roi_front=(677,510,43,46), roi_back=(549,483,202,111), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_jade.png")
 	# 猫粮 
-	I_G_CAT_FOOD = RuleImage(roi_front=(565,463,59,65), roi_back=(565,463,59,65), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_cat_food.png")
+	I_G_CAT_FOOD = RuleImage(roi_front=(635,501,59,65), roi_back=(558,472,191,132), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_cat_food.png")
 	# 狗粮 
-	I_G_DOG_FOOD = RuleImage(roi_front=(565,464,60,63), roi_back=(565,464,60,63), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_dog_food.png")
+	I_G_DOG_FOOD = RuleImage(roi_front=(643,505,60,63), roi_back=(541,485,234,115), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_dog_food.png")
 	# 忽略 
-	I_G_IGNORE = RuleImage(roi_front=(773,116,21,21), roi_back=(759,102,48,48), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_ignore.png")
+	I_G_IGNORE = RuleImage(roi_front=(859,94,21,21), roi_back=(725,40,197,142), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_g_ignore.png")
 	# 网络异常 
 	I_NETWORK_ABNORMAL = RuleImage(roi_front=(583,330,221,67), roi_back=(583,330,221,67), threshold=0.8, method="Template matching", file="./tasks/GlobalGame/gg/gg_network_abnormal.png")
 	# 已端口游戏服务器,需要重新连接,这种情况一般是断开很久了 

BIN
tasks/GlobalGame/gg/gg_g_accept.png


BIN
tasks/GlobalGame/gg/gg_g_reject.png


+ 12 - 12
tasks/GlobalGame/gg/image.json

@@ -2,8 +2,8 @@
   {
     "itemName": "g_accept",
     "imageName": "gg_g_accept.png",
-    "roiFront": "830,407,56,46",
-    "roiBack": "798,369,117,110",
+    "roiFront": "846,471,56,46",
+    "roiBack": "810,448,120,192",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "接受"
@@ -11,8 +11,8 @@
   {
     "itemName": "g_reject",
     "imageName": "gg_g_reject.png",
-    "roiFront": "832,508,53,51",
-    "roiBack": "808,480,108,101",
+    "roiFront": "846,561,53,51",
+    "roiBack": "826,458,99,172",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "拒绝"
@@ -20,8 +20,8 @@
   {
     "itemName": "g_jade",
     "imageName": "gg_g_jade.png",
-    "roiFront": "661,466,43,46",
-    "roiBack": "661,466,43,46",
+    "roiFront": "677,510,43,46",
+    "roiBack": "549,483,202,111",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "勾玉"
@@ -29,8 +29,8 @@
   {
     "itemName": "g_cat_food",
     "imageName": "gg_g_cat_food.png",
-    "roiFront": "565,463,59,65",
-    "roiBack": "565,463,59,65",
+    "roiFront": "635,501,59,65",
+    "roiBack": "558,472,191,132",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "猫粮"
@@ -38,8 +38,8 @@
   {
     "itemName": "g_dog_food",
     "imageName": "gg_g_dog_food.png",
-    "roiFront": "565,464,60,63",
-    "roiBack": "565,464,60,63",
+    "roiFront": "643,505,60,63",
+    "roiBack": "541,485,234,115",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "狗粮"
@@ -47,8 +47,8 @@
   {
     "itemName": "g_ignore",
     "imageName": "gg_g_ignore.png",
-    "roiFront": "773,116,21,21",
-    "roiBack": "759,102,48,48",
+    "roiFront": "859,94,21,21",
+    "roiBack": "725,40,197,142",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "忽略"