Pārlūkot izejas kodu

fix(GameUi): Add six gates boss UI element and detection image
- add I_UI_CHECK_SIX_GATES_BOSS asset for detecting six gates boss screen
- register page_check_six_gates.png in page image config

neptine 4 mēneši atpakaļ
vecāks
revīzija
9d120ecd86

+ 2 - 1
tasks/GameUi/assets.py

@@ -89,7 +89,7 @@ class GameUiAssets:
 	# description 
 	# description 
 	I_CHECK_HEIAN_KITAN = RuleImage(roi_front=(27,48,47,39), roi_back=(27,48,47,39), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_heian_kitan.png")
 	I_CHECK_HEIAN_KITAN = RuleImage(roi_front=(27,48,47,39), roi_back=(27,48,47,39), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_heian_kitan.png")
 	# 六道之门检查 
 	# 六道之门检查 
-	I_CHECK_SIX_GATES = RuleImage(roi_front=(1180,614,46,80), roi_back=(1145,585,120,130), threshold=0.85, method="Template matching", file="./tasks/GameUi/page/page_check_six_gates.png")
+	I_CHECK_SIX_GATES = RuleImage(roi_front=(411,297,21,21), roi_back=(394,252,58,104), threshold=0.85, method="Template matching", file="./tasks/GameUi/page/page_check_six_gates.png")
 	# description 
 	# description 
 	I_CHECK_BONDLING_FAIRYLAND = RuleImage(roi_front=(614,660,56,49), roi_back=(614,660,56,49), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_bondling_fairyland.png")
 	I_CHECK_BONDLING_FAIRYLAND = RuleImage(roi_front=(614,660,56,49), roi_back=(614,660,56,49), threshold=0.8, method="Template matching", file="./tasks/GameUi/page/page_check_bondling_fairyland.png")
 	# description 
 	# description 
@@ -279,3 +279,4 @@ class GameUiAssets:
 	# Ocr-description 
 	# Ocr-description 
 	O_NEW = RuleOcr(roi=(0,0,100,100), area=(0,0,100,100), mode="Single", method="Default", keyword="", name="new")
 	O_NEW = RuleOcr(roi=(0,0,100,100), area=(0,0,100,100), mode="Single", method="Default", keyword="", name="new")
 
 
+

BIN
tasks/GameUi/page/page_check_six_gates.png


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

@@ -209,8 +209,8 @@
   {
   {
     "itemName": "check_six_gates",
     "itemName": "check_six_gates",
     "imageName": "page_check_six_gates.png",
     "imageName": "page_check_six_gates.png",
-    "roiFront": "1180,614,46,80",
-    "roiBack": "1145,585,120,130",
+    "roiFront": "411,297,21,21",
+    "roiBack": "394,252,58,104",
     "method": "Template matching",
     "method": "Template matching",
     "threshold": 0.85,
     "threshold": 0.85,
     "description": "六道之门检查"
     "description": "六道之门检查"
@@ -251,4 +251,4 @@
     "threshold": 0.8,
     "threshold": 0.8,
     "description": "description"
     "description": "description"
   }
   }
-]
+]