Sfoglia il codice sorgente

fix(Costume): Update image

ryland 2 anni fa
parent
commit
ffecca1075

+ 2 - 2
tasks/Component/Costume/assets.py

@@ -28,8 +28,8 @@ class CostumeAssets:
 	I_CHECK_MAIN_2 = RuleImage(roi_front=(1090,146,48,55), roi_back=(880,108,271,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main2/main2_check_main_2.png")
 	# description 
 	I_MAIN_GOTO_EXPLORATION_2 = RuleImage(roi_front=(749,197,50,54), roi_back=(506,166,441,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main2/main2_main_goto_exploration_2.png")
-	# description 
-	I_MAIN_GOTO_SUMMON_2 = RuleImage(roi_front=(975,238,85,45), roi_back=(752,208,408,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main2/main2_main_goto_summon_2.png")
+	# 不知道为什么有的时候这个会有一个蝴蝶在上面飞 
+	I_MAIN_GOTO_SUMMON_2 = RuleImage(roi_front=(975,238,85,45), roi_back=(752,208,408,100), threshold=0.6, method="Template matching", file="./tasks/Component/Costume/main2/main2_main_goto_summon_2.png")
 	# description 
 	I_MAIN_GOTO_TOWN_2 = RuleImage(roi_front=(783,328,47,60), roi_back=(608,310,398,86), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main2/main2_main_goto_town_2.png")
 	# description 

+ 2 - 2
tasks/Component/Costume/main2/image.json

@@ -23,8 +23,8 @@
     "roiFront": "975,238,85,45",
     "roiBack": "752,208,408,100",
     "method": "Template matching",
-    "threshold": 0.8,
-    "description": "description"
+    "threshold": 0.6,
+    "description": "不知道为什么有的时候这个会有一个蝴蝶在上面飞"
   },
   {
     "itemName": "main_goto_town_2",

+ 1 - 2
tasks/DailyTrifles/script_task.py

@@ -103,11 +103,10 @@ class ScriptTask(GameUi, Summon, DailyTriflesAssets):
 if __name__ == '__main__':
     from module.config.config import Config
     from module.device.device import Device
-    from memory_profiler import profile
 
     c = Config('oas1')
     d = Device(c)
     t = ScriptTask(c, d)
 
-    t.run_store_sign()
+    t.run()
 

+ 1 - 1
tasks/Restart/script_task.py

@@ -53,7 +53,7 @@ if __name__ == '__main__':
     config = Config('oas1')
     device = Device(config)
     task = ScriptTask(config, device)
-    task.harvest()
+    task.app_start()
     # task.screenshot()
     # print(task.appear_then_click(task.I_LOGIN_SCROOLL_CLOSE, threshold=0.9))