Jelajahi Sumber

fix(GeneralBuff): 调整图像识别资源的坐标和尺寸 #1579

yuyuyuyuyu 5 bulan lalu
induk
melakukan
6d078403d8

+ 2 - 2
tasks/Component/GeneralBuff/assets.py

@@ -26,9 +26,9 @@ class GeneralBuffAssets:
 	# description 
 	I_EXP_100 = RuleImage(roi_front=(383,406,30,40), roi_back=(368,126,58,386), threshold=0.8, method="Template matching", file="./tasks/Component/GeneralBuff/gb/gb_exp_100.png")
 	# description 
-	I_OPEN_YELLOW = RuleImage(roi_front=(773,297,17,21), roi_back=(766,133,35,366), threshold=0.6, method="Template matching", file="./tasks/Component/GeneralBuff/gb/gb_open_yellow.png")
+	I_OPEN_YELLOW = RuleImage(roi_front=(774,299,13,18), roi_back=(766,133,35,366), threshold=0.6, method="Template matching", file="./tasks/Component/GeneralBuff/gb/gb_open_yellow.png")
 	# description 
-	I_CLOSE_RED = RuleImage(roi_front=(773,297,17,21), roi_back=(764,134,38,369), threshold=0.6, method="Template matching", file="./tasks/Component/GeneralBuff/gb/gb_close_red.png")
+	I_CLOSE_RED = RuleImage(roi_front=(773,365,12,20), roi_back=(764,134,38,369), threshold=0.6, method="Template matching", file="./tasks/Component/GeneralBuff/gb/gb_close_red.png")
 	# 用来判定是否点击的那个 
 	I_CLOUD = RuleImage(roi_front=(357,505,65,38), roi_back=(313,484,158,75), threshold=0.8, method="Template matching", file="./tasks/Component/GeneralBuff/gb/gb_cloud.png")
 

TEMPAT SAMPAH
tasks/Component/GeneralBuff/gb/gb_close_red.png


TEMPAT SAMPAH
tasks/Component/GeneralBuff/gb/gb_open_yellow.png


+ 2 - 2
tasks/Component/GeneralBuff/gb/image.json

@@ -65,7 +65,7 @@
   {
     "itemName": "open_yellow",
     "imageName": "gb_open_yellow.png",
-    "roiFront": "773,297,17,21",
+    "roiFront": "774,299,13,18",
     "roiBack": "766,133,35,366",
     "method": "Template matching",
     "threshold": 0.6,
@@ -74,7 +74,7 @@
   {
     "itemName": "close_red",
     "imageName": "gb_close_red.png",
-    "roiFront": "773,297,17,21",
+    "roiFront": "773,365,12,20",
     "roiBack": "764,134,38,369",
     "method": "Template matching",
     "threshold": 0.6,