Преглед на файлове

fix: adjust ROI coordinates and thresholds for UI elements

ryland преди 9 месеца
родител
ревизия
e4aa81a70a

+ 9 - 9
tasks/Component/CostumeBattle/assets.py

@@ -28,6 +28,15 @@ class CostumeBattleAssets:
 	I_LOCAL_10 = RuleImage(roi_front=(29,566,23,26), roi_back=(29,566,23,26), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle10/battle10_local_10.png")
 
 
+	# Image Rule Assets
+	# 左上角退出 
+	I_EXIT_11 = RuleImage(roi_front=(16,15,31,34), roi_back=(16,15,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle11/battle11_exit_11.png")
+	# 左上角好友 
+	I_FRIENDS_11 = RuleImage(roi_front=(90,14,30,28), roi_back=(90,14,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle11/battle11_friends_11.png")
+	# 指针 
+	I_LOCAL_11 = RuleImage(roi_front=(29,566,29,28), roi_back=(29,566,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle11/battle11_local_11.png")
+
+
 	# Image Rule Assets
 	# description 
 	I_LOCAL_2 = RuleImage(roi_front=(30,569,21,22), roi_back=(30,569,21,22), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle2/battle2_local_2.png")
@@ -106,12 +115,3 @@ class CostumeBattleAssets:
 	I_LOCAL_9 = RuleImage(roi_front=(114,489,37,37), roi_back=(114,489,37,37), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle9/battle9_local_9.png")
 
 
-	# Image Rule Assets
-	# 左上角退出 
-	I_EXIT_11 = RuleImage(roi_front=(16,15,31,34), roi_back=(16,15,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle11/battle11_exit_11.png")
-	# 左上角好友 
-	I_FRIENDS_11 = RuleImage(roi_front=(90,14,30,28), roi_back=(90,14,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle11/battle11_friends_11.png")
-	# 指针 
-	I_LOCAL_11 = RuleImage(roi_front=(29,566,29,28), roi_back=(29,566,40,40), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle11/battle11_local_11.png")
-
-

+ 181 - 181
tasks/Component/CostumeShikigami/sk6/image.json

@@ -1,182 +1,182 @@
-[
-  {
-    "itemName": "check_records_6",
-    "imageName": "sk6_check_records_6.png",
-    "roiFront": "269,71,55,50",
-    "roiBack": "269,71,55,50",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "用于判断在式神录"
-  },
-  {
-    "itemName": "record_soul_back_6",
-    "imageName": "sk6_record_soul_back_6.png",
-    "roiFront": "19,9,51,44",
-    "roiBack": "19,9,51,44",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "退出式神录"
-  },
-  {
-    "itemName": "soul_preset_6",
-    "imageName": "sk6_soul_preset_6.png",
-    "roiFront": "335,73,90,51",
-    "roiBack": "310,57,169,72",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "预设"
-  },
-  {
-    "itemName": "sou_switch_1_6",
-    "imageName": "sk6_sou_switch_1_6.png",
-    "roiFront": "973,140,34,32",
-    "roiBack": "967,131,51,48",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "第一组切换"
-  },
-  {
-    "itemName": "sou_switch_2_6",
-    "imageName": "sk6_sou_switch_2_6.png",
-    "roiFront": "971,293,33,33",
-    "roiBack": "960,284,58,49",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "第二组切换"
-  },
-  {
-    "itemName": "sou_switch_3_6",
-    "imageName": "sk6_sou_switch_3_6.png",
-    "roiFront": "968,448,41,38",
-    "roiBack": "962,442,52,48",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
-  },
-  {
-    "itemName": "sou_switch_4_6",
-    "imageName": "sk6_sou_switch_4_6.png",
-    "roiFront": "967,597,42,25",
-    "roiBack": "962,592,53,34",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
-  },
-  {
-    "itemName": "sou_switch_sure_6",
-    "imageName": "sk6_sou_switch_sure_6.png",
-    "roiFront": "668,401,180,61",
-    "roiBack": "668,401,180,61",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
-  },
-  {
-    "itemName": "sou_check_in_6",
-    "imageName": "sk6_sou_check_in_6.png",
-    "roiFront": "269,69,50,49",
-    "roiBack": "269,69,50,49",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "用于判断是否在式神录里面"
-  },
-  {
-    "itemName": "sou_check_group_1_6",
-    "imageName": "sk6_sou_check_group_1_6.png",
-    "roiFront": "1086,91,22,57",
-    "roiBack": "1086,91,22,57",
-    "method": "Template matching",
-    "threshold": 0.9,
-    "description": "检查是否为第一组"
-  },
-  {
-    "itemName": "sou_check_group_2_6",
-    "imageName": "sk6_sou_check_group_2_6.png",
-    "roiFront": "1086,163,25,57",
-    "roiBack": "1086,163,25,57",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
-  },
-  {
-    "itemName": "sou_check_group_3_6",
-    "imageName": "sk6_sou_check_group_3_6.png",
-    "roiFront": "1085,234,22,49",
-    "roiBack": "1085,234,22,49",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
-  },
-  {
-    "itemName": "sou_check_group_4_6",
-    "imageName": "sk6_sou_check_group_4_6.png",
-    "roiFront": "1086,303,21,56",
-    "roiBack": "1086,303,21,56",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
-  },
-  {
-    "itemName": "sou_check_group_5_6",
-    "imageName": "sk6_sou_check_group_5_6.png",
-    "roiFront": "1088,370,21,53",
-    "roiBack": "1088,370,21,53",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
-  },
-  {
-    "itemName": "sou_check_group_6_6",
-    "imageName": "sk6_sou_check_group_6_6.png",
-    "roiFront": "1085,443,23,54",
-    "roiBack": "1085,443,23,54",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
-  },
-  {
-    "itemName": "sou_check_group_7_6",
-    "imageName": "sk6_sou_check_group_7_6.png",
-    "roiFront": "1088,512,21,54",
-    "roiBack": "1088,512,21,54",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
-  },
-  {
-    "itemName": "sou_team_present_6",
-    "imageName": "sk6_sou_team_present_6.png",
-    "roiFront": "720,76,136,43",
-    "roiBack": "706,68,175,63",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "匹配队伍预设"
-  },
-  {
-    "itemName": "sou_click_present_6",
-    "imageName": "sk6_sou_click_present_6.png",
-    "roiFront": "967,305,43,22",
-    "roiBack": "965,142,48,480",
-    "method": "Template matching",
-    "threshold": 0.9,
-    "description": "需要切换的预设按钮(颜色深一点)"
-  },
-  {
-    "itemName": "st_souls_6",
-    "imageName": "sk6_st_souls_6.png",
-    "roiFront": "1180,236,62,66",
-    "roiBack": "1176,230,70,80",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "选中的御魂"
-  },
-  {
-    "itemName": "st_replace_6",
-    "imageName": "sk6_st_replace_6.png",
-    "roiFront": "856,170,100,100",
-    "roiBack": "856,170,100,100",
-    "method": "Template matching",
-    "threshold": 0.8,
-    "description": "更换"
-  }
+[
+  {
+    "itemName": "check_records_6",
+    "imageName": "sk6_check_records_6.png",
+    "roiFront": "269,71,55,50",
+    "roiBack": "269,71,55,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断在式神录"
+  },
+  {
+    "itemName": "record_soul_back_6",
+    "imageName": "sk6_record_soul_back_6.png",
+    "roiFront": "19,9,51,44",
+    "roiBack": "19,9,51,44",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "退出式神录"
+  },
+  {
+    "itemName": "soul_preset_6",
+    "imageName": "sk6_soul_preset_6.png",
+    "roiFront": "335,73,90,51",
+    "roiBack": "310,57,169,72",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "预设"
+  },
+  {
+    "itemName": "sou_switch_1_6",
+    "imageName": "sk6_sou_switch_1_6.png",
+    "roiFront": "973,140,34,32",
+    "roiBack": "967,131,51,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第一组切换"
+  },
+  {
+    "itemName": "sou_switch_2_6",
+    "imageName": "sk6_sou_switch_2_6.png",
+    "roiFront": "971,293,33,33",
+    "roiBack": "960,284,58,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第二组切换"
+  },
+  {
+    "itemName": "sou_switch_3_6",
+    "imageName": "sk6_sou_switch_3_6.png",
+    "roiFront": "968,448,41,38",
+    "roiBack": "962,442,52,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_4_6",
+    "imageName": "sk6_sou_switch_4_6.png",
+    "roiFront": "967,597,42,25",
+    "roiBack": "962,592,53,34",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_sure_6",
+    "imageName": "sk6_sou_switch_sure_6.png",
+    "roiFront": "668,401,180,61",
+    "roiBack": "668,401,180,61",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_in_6",
+    "imageName": "sk6_sou_check_in_6.png",
+    "roiFront": "269,69,50,49",
+    "roiBack": "269,69,50,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断是否在式神录里面"
+  },
+  {
+    "itemName": "sou_check_group_1_6",
+    "imageName": "sk6_sou_check_group_1_6.png",
+    "roiFront": "1086,91,22,57",
+    "roiBack": "1086,91,22,57",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "检查是否为第一组"
+  },
+  {
+    "itemName": "sou_check_group_2_6",
+    "imageName": "sk6_sou_check_group_2_6.png",
+    "roiFront": "1086,163,25,57",
+    "roiBack": "1086,163,25,57",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_3_6",
+    "imageName": "sk6_sou_check_group_3_6.png",
+    "roiFront": "1085,234,22,49",
+    "roiBack": "1085,234,22,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_4_6",
+    "imageName": "sk6_sou_check_group_4_6.png",
+    "roiFront": "1086,303,21,56",
+    "roiBack": "1086,303,21,56",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_5_6",
+    "imageName": "sk6_sou_check_group_5_6.png",
+    "roiFront": "1088,370,21,53",
+    "roiBack": "1088,370,21,53",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_6_6",
+    "imageName": "sk6_sou_check_group_6_6.png",
+    "roiFront": "1085,443,23,54",
+    "roiBack": "1085,443,23,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_7_6",
+    "imageName": "sk6_sou_check_group_7_6.png",
+    "roiFront": "1088,512,21,54",
+    "roiBack": "1088,512,21,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_team_present_6",
+    "imageName": "sk6_sou_team_present_6.png",
+    "roiFront": "720,76,136,43",
+    "roiBack": "706,68,175,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "匹配队伍预设"
+  },
+  {
+    "itemName": "sou_click_present_6",
+    "imageName": "sk6_sou_click_present_6.png",
+    "roiFront": "967,305,43,22",
+    "roiBack": "965,142,48,480",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "需要切换的预设按钮(颜色深一点)"
+  },
+  {
+    "itemName": "st_souls_6",
+    "imageName": "sk6_st_souls_6.png",
+    "roiFront": "1180,236,62,66",
+    "roiBack": "1176,230,70,80",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "选中的御魂"
+  },
+  {
+    "itemName": "st_replace_6",
+    "imageName": "sk6_st_replace_6.png",
+    "roiFront": "856,170,100,100",
+    "roiBack": "856,170,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "更换"
+  }
 ]

+ 3 - 3
tasks/GameUi/assets.py

@@ -113,7 +113,7 @@ class GameUiAssets:
 	# 百鬼奕 
 	I_TOWN_GOTO_HYAKKISEN = RuleImage(roi_front=(192,145,48,67), roi_back=(86,130,447,100), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_town_goto_hyakkisen.png")
 	# 检查斗技页面 
-	I_CHECK_DUEL = RuleImage(roi_front=(151,12,71,44), roi_back=(79,1,474,74), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_duel.png")
+	I_CHECK_DUEL = RuleImage(roi_front=(151,17,71,39), roi_back=(79,1,474,74), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_duel.png")
 	# description 
 	I_CHECK_DEMON_ENCOUNTER = RuleImage(roi_front=(26,658,42,43), roi_back=(2,619,100,100), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_demon_encounter.png")
 	# 检查狩猎战界面 
@@ -144,11 +144,11 @@ class GameUiAssets:
 	# description 
 	I_MAIN_GOTO_FRIENDS = RuleImage(roi_front=(845,590,55,55), roi_back=(845,590,120,100), threshold=0.7, method="Template matching", file="./tasks/GameUi/page/page_main_goto_friends.png")
 	# 进入花合战 
-	I_MAIN_GOTO_DAILY = RuleImage(roi_front=(735,590,35,31), roi_back=(735,590,120,100), threshold=0.5, method="Template matching", file="./tasks/GameUi/page/page_main_goto_daily.png")
+	I_MAIN_GOTO_DAILY = RuleImage(roi_front=(735,590,50,32), roi_back=(735,590,120,100), threshold=0.7, method="Template matching", file="./tasks/GameUi/page/page_main_goto_daily.png")
 	# description 
 	I_MAIN_GOTO_MALL = RuleImage(roi_front=(620,590,33,35), roi_back=(620,590,120,100), threshold=0.5, method="Template matching", file="./tasks/GameUi/page/page_main_goto_mall.png")
 	# description 
-	I_MAIN_GOTO_GUILD = RuleImage(roi_front=(495,590,50,22), roi_back=(495,590,120,100), threshold=0.5, method="Template matching", file="./tasks/GameUi/page/page_main_goto_guild.png")
+	I_MAIN_GOTO_GUILD = RuleImage(roi_front=(495,590,50,22), roi_back=(495,590,120,100), threshold=0.7, method="Template matching", file="./tasks/GameUi/page/page_main_goto_guild.png")
 	# description 
 	I_MAIN_GOTO_TEAM = RuleImage(roi_front=(395,590,38,48), roi_back=(395,590,120,100), threshold=0.7, method="Template matching", file="./tasks/GameUi/page/page_main_goto_team.png")
 	# description 

+ 1 - 1
tasks/GameUi/page.py

@@ -53,7 +53,7 @@ page_login = Page(G.I_CHECK_LOGIN_FORM)
 # Main Home 主页
 page_main = Page(G.I_CHECK_MAIN)
 page_main.additional = [G.I_AD_CLOSE_RED, G.I_BACK_FRIENDS, RestartAssets.I_CANCEL_BATTLE,
-                        [RestartAssets.I_LOGIN_COURTYARD, RestartAssets.C_LOGIN_SCROOLL_CLOSE_AREA]]
+                        [RestartAssets.I_LOGIN_COURTYARD, RestartAssets.C_LOGIN_SCROLL_CLOSE_AREA]]
 # 召唤summon
 page_summon = Page(G.I_CHECK_SUMMON)
 page_summon.link(button=G.I_SUMMON_GOTO_MAIN, destination=page_main)

+ 5 - 3
tasks/Restart/assets.py

@@ -72,6 +72,8 @@ class RestartAssets:
 	# Click Rule Assets
 	# 相同服务器多个角色选择界面,点击空白区域 确认登录 
 	C_LOGIN_ENSURE_LOGIN_CHARACTER_IN_SAME_SVR = RuleClick(roi_front=(600,240,500,400), roi_back=(600,240,500,400), name="login_ensure_login_character_in_same_svr")
+	# 卷轴关闭区域点击(用户新增,用于点击I_LOGIN_SCROOLL_CLOSE的区域而不依赖图片识别) 
+	C_LOGIN_SCROLL_CLOSE_AREA = RuleClick(roi_front=(1181,634,28,39), roi_back=(1162,595,77,112), name="login_scroll_close_area")
 
 
 	# Image Rule Assets
@@ -79,10 +81,10 @@ class RestartAssets:
 	I_LOGIN_SCROOLL_OPEN = RuleImage(roi_front=(1208,609,33,83), roi_back=(1208,609,33,83), threshold=0.8, method="Template matching", file="./tasks/Restart/login/login_login_scrooll_open.png")
 	# 庭院卷轴关闭 
 	I_LOGIN_SCROOLL_CLOSE = RuleImage(roi_front=(1181,634,28,39), roi_back=(1162,595,77,112), threshold=0.7, method="Template matching", file="./tasks/Restart/login/login_login_scrooll_close.png")
-	# 闲庭图片(用户新增,用于判断是否需要点击卷轴关闭区域)
+	# 闲庭图片(用户新增,用于判断是否需要点击卷轴关闭区域) 
 	I_LOGIN_COURTYARD = RuleImage(roi_front=(40,640,100,50), roi_back=(40,640,100,50), threshold=0.8, method="Template matching", file="./tasks/Restart/login/login_courtyard.png")
-	# 卷轴关闭区域点击(用户新增,用于点击I_LOGIN_SCROOLL_CLOSE的区域而不依赖图片识别)
-	C_LOGIN_SCROOLL_CLOSE_AREA = RuleClick(roi_front=(1181,634,28,39), roi_back=(1162,595,77,112), name="login_scroll_close_area")
+	# 卷轴关闭区域点击(用户新增,用于点击I_LOGIN_SCROOLL_CLOSE的区域而不依赖图片识别) 
+	I_LOGIN_SCROLL_CLOSE_AREA = RuleImage(roi_front=(1181,634,28,39), roi_back=(1162,595,77,112), threshold=0.8, method="Template matching", file="./tasks/Restart/login/login_scroll_close_area.png")
 	# description 
 	I_LOGIN_RED_CLOSE = RuleImage(roi_front=(800,0,480,290), roi_back=(800,0,480,290), threshold=0.8, method="Template matching", file="./tasks/Restart/login/login_login_red_close.png")
 	# description 

+ 6 - 0
tasks/Restart/login/click.json

@@ -4,5 +4,11 @@
     "roiFront": "600,240,500,400",
     "roiBack": "600,240,500,400",
     "description": "相同服务器多个角色选择界面,点击空白区域 确认登录"
+  },
+  {
+    "itemName": "login_scroll_close_area",
+    "roiFront": "1181,634,28,39",
+    "roiBack": "1162,595,77,112",
+    "description": "卷轴关闭区域点击(用户新增,用于点击I_LOGIN_SCROOLL_CLOSE的区域而不依赖图片识别)"
   }
 ]

+ 18 - 0
tasks/Restart/login/image.json

@@ -17,6 +17,24 @@
     "threshold": 0.7,
     "description": "庭院卷轴关闭"
   },
+  {
+    "itemName": "login_courtyard",
+    "imageName": "login_courtyard.png",
+    "roiFront": "40,640,100,50",
+    "roiBack": "40,640,100,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "闲庭图片(用户新增,用于判断是否需要点击卷轴关闭区域)"
+  },
+  {
+    "itemName": "login_scroll_close_area",
+    "imageName": "login_scroll_close_area.png",
+    "roiFront": "1181,634,28,39",
+    "roiBack": "1162,595,77,112",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "卷轴关闭区域点击(用户新增,用于点击I_LOGIN_SCROOLL_CLOSE的区域而不依赖图片识别)"
+  },
   {
     "itemName": "login_red_close",
     "imageName": "login_login_red_close.png",

+ 1 - 1
tasks/RichMan/assets.py

@@ -170,7 +170,7 @@ class RichManAssets:
 	# 杂货铺 
 	I_MALL_SUNDRY = RuleImage(roi_front=(880,646,53,54), roi_back=(834,621,116,90), threshold=0.65, method="Template matching", file="./tasks/RichMan/mall/navbar/navbar_mall_sundry.png")
 	# 杂货铺 
-	I_MALL_SUNDRY_CHECK = RuleImage(roi_front=(1093,10,31,44), roi_back=(1093,10,31,44), threshold=0.7, method="Template matching", file="./tasks/RichMan/mall/navbar/navbar_mall_sundry_check.png")
+	I_MALL_SUNDRY_CHECK = RuleImage(roi_front=(1093,10,31,44), roi_back=(1093,10,150,100), threshold=0.7, method="Template matching", file="./tasks/RichMan/mall/navbar/navbar_mall_sundry_check.png")
 
 
 	# Image Rule Assets

+ 2 - 2
tasks/RichMan/mall/navbar/image_bottom.json

@@ -83,8 +83,8 @@
   {
     "itemName": "mall_sundry_check",
     "imageName": "navbar_mall_sundry_check.png",
-    "roiFront": "1050,0,31,44",
-    "roiBack": "1050,0,150,100",
+    "roiFront": "1093,10,31,44",
+    "roiBack": "1093,10,150,100",
     "method": "Template matching",
     "threshold": 0.7,
     "description": "杂货铺"

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

@@ -38,8 +38,8 @@
   {
     "itemName": "wt_ab_wechat",
     "imageName": "area_boss_wt_ab_wechat.png",
-    "roiFront": "845,643,50,41",
-    "roiBack": "845,643,50,41",
+    "roiFront": "920,646,50,41",
+    "roiBack": "829,620,172,85",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "微信分享"

+ 1 - 1
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_WECHAT = RuleImage(roi_front=(845,643,50,41), roi_back=(845,643,50,41), 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=(829,620,172,85), threshold=0.8, method="Template matching", file="./tasks/WeeklyTrifles/area_boss/area_boss_wt_ab_wechat.png")
 
 
 	# Image Rule Assets