Преглед изворни кода

Merge pull request #1485 from yEs1do/fix(WT_share)

修改每周分享任务的图片识别范围(兼容体服)
huangrunheng пре 7 месеци
родитељ
комит
9fc54237cd

+ 1 - 1
tasks/WeeklyTrifles/area_boss/image.json

@@ -39,7 +39,7 @@
     "itemName": "wt_ab_wechat",
     "itemName": "wt_ab_wechat",
     "imageName": "area_boss_wt_ab_wechat.png",
     "imageName": "area_boss_wt_ab_wechat.png",
     "roiFront": "920,646,50,41",
     "roiFront": "920,646,50,41",
-    "roiBack": "829,620,172,85",
+    "roiBack": "760,620,240,85",
     "method": "Template matching",
     "method": "Template matching",
     "threshold": 0.8,
     "threshold": 0.8,
     "description": "微信分享"
     "description": "微信分享"

+ 2 - 2
tasks/WeeklyTrifles/assets.py

@@ -25,7 +25,7 @@ class WeeklyTriflesAssets:
 	# 分享勾玉 
 	# 分享勾玉 
 	I_WT_AB_JADE = RuleImage(roi_front=(977,552,44,47), roi_back=(977,552,44,47), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/area_boss/area_boss_wt_ab_jade.png")
 	I_WT_AB_JADE = RuleImage(roi_front=(977,552,44,47), roi_back=(977,552,44,47), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/area_boss/area_boss_wt_ab_jade.png")
 	# 微信分享 
 	# 微信分享 
-	I_WT_AB_WECHAT = RuleImage(roi_front=(920,646,50,41), roi_back=(829,620,172,85), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/area_boss/area_boss_wt_ab_wechat.png")
+	I_WT_AB_WECHAT = RuleImage(roi_front=(920,646,50,41), roi_back=(760,620,240,85), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/area_boss/area_boss_wt_ab_wechat.png")
 
 
 
 
 	# Image Rule Assets
 	# Image Rule Assets
@@ -76,7 +76,7 @@ class WeeklyTriflesAssets:
 	# 秘闻分享 
 	# 秘闻分享 
 	I_WT_SE_SHARE = RuleImage(roi_front=(911,570,46,43), roi_back=(886,547,92,95), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/secret/secret_wt_se_share.png")
 	I_WT_SE_SHARE = RuleImage(roi_front=(911,570,46,43), roi_back=(886,547,92,95), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/secret/secret_wt_se_share.png")
 	# 微信 
 	# 微信 
-	I_WT_SE_WECHAT = RuleImage(roi_front=(823,641,45,37), roi_back=(786,601,148,89), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/secret/secret_wt_se_wechat.png")
+	I_WT_SE_WECHAT = RuleImage(roi_front=(823,641,45,37), roi_back=(700,601,220,89), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/secret/secret_wt_se_wechat.png")
 	# 勾玉 
 	# 勾玉 
 	I_WT_SE_JADE = RuleImage(roi_front=(1126,533,35,39), roi_back=(1118,525,50,55), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/secret/secret_wt_se_jade.png")
 	I_WT_SE_JADE = RuleImage(roi_front=(1126,533,35,39), roi_back=(1118,525,50,55), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/secret/secret_wt_se_jade.png")
 	# 排行 
 	# 排行 

+ 1 - 1
tasks/WeeklyTrifles/secret/image.json

@@ -21,7 +21,7 @@
     "itemName": "wt_se_wechat",
     "itemName": "wt_se_wechat",
     "imageName": "secret_wt_se_wechat.png",
     "imageName": "secret_wt_se_wechat.png",
     "roiFront": "823,641,45,37",
     "roiFront": "823,641,45,37",
-    "roiBack": "786,601,148,89",
+    "roiBack": "700,601,220,89",
     "method": "Template matching",
     "method": "Template matching",
     "threshold": 0.8,
     "threshold": 0.8,
     "description": "微信"
     "description": "微信"