Explorar el Código

fix(GeneralBuff): 调整黄色开启和红色关闭图像的识别宽度和阈值

yEs1do hace 11 meses
padre
commit
a6fb740f81

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

@@ -26,9 +26,9 @@ class GeneralBuffAssets:
 	# description 
 	# 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")
 	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 
 	# description 
-	I_OPEN_YELLOW = RuleImage(roi_front=(772,347,21,21), roi_back=(766,133,35,366), threshold=0.7, method="Template matching", file="./tasks/Component/GeneralBuff/gb/gb_open_yellow.png")
+	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")
 	# description 
 	# description 
-	I_CLOSE_RED = RuleImage(roi_front=(774,143,21,21), roi_back=(764,134,38,369), threshold=0.63, method="Template matching", file="./tasks/Component/GeneralBuff/gb/gb_close_red.png")
+	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_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")
 	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")
 
 

BIN
tasks/Component/GeneralBuff/gb/gb_close_red.png


BIN
tasks/Component/GeneralBuff/gb/gb_open_yellow.png


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

@@ -65,19 +65,19 @@
   {
   {
     "itemName": "open_yellow",
     "itemName": "open_yellow",
     "imageName": "gb_open_yellow.png",
     "imageName": "gb_open_yellow.png",
-    "roiFront": "772,347,21,21",
+    "roiFront": "773,297,17,21",
     "roiBack": "766,133,35,366",
     "roiBack": "766,133,35,366",
     "method": "Template matching",
     "method": "Template matching",
-    "threshold": 0.7,
+    "threshold": 0.6,
     "description": "description"
     "description": "description"
   },
   },
   {
   {
     "itemName": "close_red",
     "itemName": "close_red",
     "imageName": "gb_close_red.png",
     "imageName": "gb_close_red.png",
-    "roiFront": "774,143,21,21",
+    "roiFront": "773,297,17,21",
     "roiBack": "764,134,38,369",
     "roiBack": "764,134,38,369",
     "method": "Template matching",
     "method": "Template matching",
-    "threshold": 0.63,
+    "threshold": 0.6,
     "description": "description"
     "description": "description"
   },
   },
   {
   {