Kaynağa Gözat

add page_ui page_kekkai_toppa to support kekkai toppa recognize.

TripleEarth 3 yıl önce
ebeveyn
işleme
17e29101de

+ 2 - 2
tasks/GameUi/assets.py

@@ -162,8 +162,8 @@ class GameUiAssets:
 
 
 	# Image Rule Assets
-	# 结界突破文字 
-	I_KEKKAI_TOPPA = RuleImage(roi_front=(570,76,129,40), roi_back=(570,76,129,40), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_kekkai_toppa.png")
+	# 寮结界突破右上角 
+	I_KEKKAI_TOPPA = RuleImage(roi_front=(1065,3,203,61), roi_back=(1065,3,203,61), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_kekkai_toppa.png")
 
 
 	# Image Rule Assets

+ 3 - 2
tasks/GameUi/page.py

@@ -1,6 +1,7 @@
 import traceback
 
 from tasks.GameUi.assets import GameUiAssets as G
+from tasks.RyouToppa.assets import RyouToppaAssets
 
 
 class Page:
@@ -59,10 +60,10 @@ page_exploration.link(button=G.I_EXPLORATION_GOTO_SOUL_ZONE, destination=page_so
 page_realm_raid = Page(G.I_CHECK_REALM_RAID)
 page_realm_raid.link(button=G.I_REALM_RAID_GOTO_EXPLORATION, destination=page_exploration)
 page_exploration.link(button=G.I_EXPLORATION_GOTO_REALM_RAID, destination=page_realm_raid)
-# 结界突破上方文字 kekkai toppa
+# 寮结界突破右上角 kekkai toppa
 page_kekkai_toppa = Page(G.I_KEKKAI_TOPPA)
 page_kekkai_toppa.link(button=G.I_REALM_RAID_GOTO_EXPLORATION, destination=page_exploration)
-page_exploration.link(button=G.I_EXPLORATION_GOTO_REALM_RAID, destination=page_kekkai_toppa)
+page_realm_raid.link(button=RyouToppaAssets.I_RYOU_TOPPA, destination=page_kekkai_toppa)
 # 御灵 goryou realm
 page_goryou_realm = Page(G.I_CHECK_GORYOU)
 page_goryou_realm.link(button=G.I_BACK_BLUE, destination=page_exploration)

+ 3 - 3
tasks/GameUi/page/page_img_supplement_RyouToppa.json

@@ -2,10 +2,10 @@
   {
     "itemName": "kekkai_toppa",
     "imageName": "page_kekkai_toppa.png",
-    "roiFront": "570,76,129,40",
-    "roiBack": "570,76,129,40",
+    "roiFront": "1065,3,203,61",
+    "roiBack": "1065,3,203,61",
     "method": "Template matching",
     "threshold": 0.8,
-    "description": "结界突破文字"
+    "description": "寮结界突破右上角"
   }
 ]

BIN
tasks/GameUi/page/page_kekkai_toppa.png


+ 2 - 0
tasks/RealmRaid/assets.py

@@ -49,6 +49,8 @@ class RealmRaidAssets:
 	I_MEDAL_5_FROG = RuleImage(roi_front=(903,479,201,49), roi_back=(189,182,967,376), threshold=0.8, method="Template matching", file="./tasks/RealmRaid/res/res_medal_5_frog.png")
 	# 3徽章新图2号 
 	I_MEDAL_3_2 = RuleImage(roi_front=(575,489,188,32), roi_back=(575,489,188,32), threshold=0.8, method="Template matching", file="./tasks/RealmRaid/res/res_medal_3_2.png")
+	# description 
+	I_MEDAL_3_3 = RuleImage(roi_front=(902,479,201,50), roi_back=(902,479,201,50), threshold=0.8, method="Template matching", file="./tasks/RealmRaid/res/res_medal_3_3.png")
 
 
 	# Ocr Rule Assets

+ 9 - 0
tasks/RealmRaid/res/image.json

@@ -169,5 +169,14 @@
     "method": "Template matching",
     "threshold": 0.8,
     "description": "3徽章新图2号"
+  },
+  {
+    "itemName": "medal_3_3",
+    "imageName": "res_medal_3_3.png",
+    "roiFront": "902,479,201,50",
+    "roiBack": "902,479,201,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
   }
 ]

BIN
tasks/RealmRaid/res/res_medal_3_3.png