Sfoglia il codice sorgente

feat(FrogBoss): Update image roi

huangrunheng 2 anni fa
parent
commit
12bd435e6e

+ 1 - 0
tasks/Component/RightActivity/right_activity.py

@@ -14,6 +14,7 @@ class RightActivity(GameUi, RightActivityAssets):
     def enter(self, target: RuleImage):
         self.ui_get_current_page()
         self.ui_goto(page_main)
+
         self.ui_click_until_disappear(target, interval=3.5)
 
     def right_open(self):

+ 2 - 2
tasks/FrogBoss/assets.py

@@ -44,8 +44,8 @@ class FrogBossAssets:
 	# Image Rule Assets
 	# description 
 	I_FROG_BOSS_ENTER = RuleImage(roi_front=(1191,391,36,38), roi_back=(1174,135,78,320), threshold=0.7, method="Template matching", file="./tasks/FrogBoss/fb/fb_frog_boss_enter.png")
-	# description 
-	I_FROG_BOSS_REST = RuleImage(roi_front=(508,266,169,64), roi_back=(508,266,169,64), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_frog_boss_rest.png")
+	# 休息中 
+	I_FROG_BOSS_REST = RuleImage(roi_front=(510,274,169,64), roi_back=(492,260,220,113), threshold=0.8, method="Template matching", file="./tasks/FrogBoss/fb/fb_frog_boss_rest.png")
 
 
 	# Ocr Rule Assets

+ 3 - 3
tasks/FrogBoss/fb/image2.json

@@ -11,10 +11,10 @@
   {
     "itemName": "frog_boss_rest",
     "imageName": "fb_frog_boss_rest.png",
-    "roiFront": "508,266,169,64",
-    "roiBack": "508,266,169,64",
+    "roiFront": "510,274,169,64",
+    "roiBack": "492,260,220,113",
     "method": "Template matching",
     "threshold": 0.8,
-    "description": "description"
+    "description": "休息中"
   }
 ]