فهرست منبع

fix(GameUI): Update image

ryland 2 سال پیش
والد
کامیت
3708b79609

+ 2 - 2
dev_tools/assets_test.py

@@ -34,12 +34,12 @@ def detect_ocr(file: str, target: RuleOcr):
 
 
 # 图片文件路径 可以是相对路径
-IMAGE_FILE = r'C:\Users\Ryland\Downloads\QQ截图20240402214513.png'
+IMAGE_FILE = r"C:\Users\Ryland\Desktop\QQ截图20240407130042.png"
 if __name__ == '__main__':
     from tasks.KekkaiActivation.assets import KekkaiActivationAssets
     from tasks.GameUi.assets import GameUiAssets
 
-    targe = GameUiAssets.I_MAIN_GOTO_DAILY
+    targe = GameUiAssets.I_MAIN_GOTO_TEAM
     print(detect_image(IMAGE_FILE, targe))
     # from tasks.KekkaiActivation.assets import KekkaiActivationAssets
     # target = KekkaiActivationAssets.O_CARD_ALL_TIME

+ 2 - 2
tasks/GameUi/assets.py

@@ -133,9 +133,9 @@ class GameUiAssets:
 	# description 
 	I_MAIN_GOTO_GUILD = RuleImage(roi_front=(540,611,50,54), roi_back=(540,611,50,54), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_main_goto_guild.png")
 	# description 
-	I_MAIN_GOTO_TEAM = RuleImage(roi_front=(429,622,53,51), roi_back=(429,622,53,51), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_main_goto_team.png")
+	I_MAIN_GOTO_TEAM = RuleImage(roi_front=(437,625,38,48), roi_back=(366,606,192,83), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_main_goto_team.png")
 	# description 
-	I_MAIN_GOTO_COLLECTION = RuleImage(roi_front=(92,611,51,64), roi_back=(92,611,51,64), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_main_goto_collection.png")
+	I_MAIN_GOTO_COLLECTION = RuleImage(roi_front=(92,621,36,41), roi_back=(51,596,159,85), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_main_goto_collection.png")
 	# description 
 	I_CHECK_RECORDS = RuleImage(roi_front=(269,71,55,50), roi_back=(269,71,55,50), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_records.png")
 	# description 

+ 4 - 4
tasks/GameUi/page/page_img_3.json

@@ -56,8 +56,8 @@
   {
     "itemName": "main_goto_team",
     "imageName": "page_main_goto_team.png",
-    "roiFront": "429,622,53,51",
-    "roiBack": "429,622,53,51",
+    "roiFront": "437,625,38,48",
+    "roiBack": "366,606,192,83",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"
@@ -65,8 +65,8 @@
   {
     "itemName": "main_goto_collection",
     "imageName": "page_main_goto_collection.png",
-    "roiFront": "92,611,51,64",
-    "roiBack": "92,611,51,64",
+    "roiFront": "92,621,36,41",
+    "roiBack": "51,596,159,85",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"

BIN
tasks/GameUi/page/page_main_goto_collection.png


BIN
tasks/GameUi/page/page_main_goto_team.png